CHAPTER 04 •
PYTHON
Python Comments
Learn how to add comments to Python code.
01 What is this?
Learn how to add comments to Python code.
02 Syntax
Python Syntax
# comment
03 Example
Python Example
# This is a comment
print('Hello')
04 Important Points
Comments are ignored by the Python interpreter.
05 Common Mistakes
Do not use comments where actual executable code is required.
06 Real World Use
Comments help developers understand and maintain code.
07 Practice This Topic
Now try the example yourself in the AIFA Python Editor.
- Read the example carefully.
- Change the values.
- Run the code.
- Observe the output.
- Try creating your own example.