https://www.gcreddy.com/2021/11/python-comments.html

Comments can be used to explain Python code and to make the code more readable. Comments can be used to prevent execution when testing code.

Comments in Python
Comments in Python start with a #, and Python will ignore them.

Single-Line Comments in Python
In Python, we use the hash symbol # to write a single-line comment.

Python Multi-Line Comments
Python does not really have a syntax for multi-line comments. To add a multiline comment you could insert a # for each line.

Since Python will ignore string literals that are not assigned to a variable, you can add a multiline string (triple quotes) in your code, and place your comment inside it.

Python docstrings
By convention, the triple quotes that appear right after the function, method or class definition are docstrings (documentation strings).

Docstrings are associated with objects and can be accessed using the __doc__ attribute.

Python Complete Tutorial
https://www.gcreddy.com/2021/07/python-tutorial.html

1. Introduction to Python Programming Language
https://www.gcreddy.com/2021/07/introduction-to-python-programming-language.html

2. Download and Install Python
https://www.gcreddy.com/2021/07/download-and-install-python.html

3. Python Language Syntax
https://www.gcreddy.com/2021/07/python-language-syntax.html

4. Python Keywords and Identifiers
https://www.gcreddy.com/2021/07/python-keywords-and-identifiers.html

5. Python Comments
https://www.gcreddy.com/2021/11/python-comments.html

6. Python Variables
https://www.gcreddy.com/2021/07/python-variables.html

7. Python Data Types
https://www.gcreddy.com/2021/07/python-data-types.html

8. Python Operators
https://www.gcreddy.com/2021/07/python-operators.html

9. Python Conditional Statements
https://www.gcreddy.com/2021/07/python-conditional-statements.html

10. Python Loops
https://www.gcreddy.com/2021/10/selenium-online-training.html

11. Python Branching Statements
https://www.gcreddy.com/2021/11/python-branching-statements.html

12. Python Numbers
https://www.gcreddy.com/2021/11/python-numbers.html

13. String Handling in Python
https://www.gcreddy.com/2021/07/string-handling-in-python.html

14. Python Lists
https://www.gcreddy.com/2021/07/python-lists.html

15. Python Tuples
https://www.gcreddy.com/2021/07/python-tuples.html

16. Python Dictionaries
https://www.gcreddy.com/2021/07/python-dictionaries.html

17. Python Modules
https://www.gcreddy.com/2021/07/python-modules.html

18. File Handling in Python
https://www.gcreddy.com/2021/09/file-handling-in-python.html