

- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
What is the common header format of Python files?
This is how Python developers commonly organize their modules/python file −
The first line of each file shoud be #!/usr/bin/env python. This makes it possible to run the file as a script invoking the interpreter implicitly.
Next should be the docstring with a description.
All code, including import statements, should follow the docstring. Import built-in modules first, followed by third-party modules, followed by any changes to the path and your own modules.
- Related Questions & Answers
- What is Authentication Header (AH) format?
- C++ Standard Library Header Files
- Standard header files in C
- What is the TCP Segment Header?
- Explain the custom header files in C language
- Explain the custom header files in C language
- Why does C++ have header files and .cpp files?
- What is the maximum size of HTTP header values?
- What is the common source of database failure?
- Add new header files in Arduino IDE
- How to share common data among multiple Python files?
- What is header() function in PHP?
- What is the Format of Microinstruction in Computer Architecture?
- What is the Computer Forensic Report Format?
- What is the importance of jmod format in Java 9?
Advertisements