Python Rules Of Coding: Comments
Previous
Python Rules Of Coding: Naming Conventions
Python Rules Of Coding: Comments
Comments :
For In-Code documentation in Python, comments are so essentials. Comments are the extra understanding layer of the code. It should be simple and verbosely so that it can be read and understand easily. Comments start with the '#' (hashtag ) symbol in Python.
Conventions:
- Updating the code and keep changing the comments according to that.
- Comments should be simple, verbose, and complete sentences.
- The way we write a sentence in general comments should be like that.
- If a comment is short and one line, we can avoid using the period in the end.
- Multi-line comments are called block comments. Every sentence must end in a period.
Always try to use inline comments, because it is so important to understand the code easily.
Next
String Quotes, and User Documentation
.............................................
Leave Python Rules Of Coding: Comments to:
Read more #stem posts
Best Posts From Hive-blogger
We have not curated any of alrashel's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.
More Posts From Hive-blogger
- Bioengineering: How It Enhances Photosynthesis and Increases Yields in Food Crops
- Every programmer needs to know the Algorithms
- The booting operations phase of the modern computer system
- A Modern Perspective Of Operating Systems
- Moved to the appropriate community!
- Trading in a smart way.
- A Popular Data Structure In Python Programming : The List
- Bitcoin Is Going To The Back Of Its Price
- Let's Destroy Racism
- Web3 Decentralized Apps Keep Quarantined During The Global Epidemic.
- The Ethereum Name Service (ENS)
- Ethereum Enhances Transaction Privacy
- Primitive and non-primitive data structures in Python
- Python Rules Of Coding: Docstrings
- Python Rules Of Coding: String literals
- Python Rules Of Coding: Comments
- Python Rules Of Coding: Naming Conventions
- JavaScript : The Scripting Language
- Python Rules Of Coding: Indentation
- Python Data Types (fourth part)