Python Tutorial 04
Comments in Python
In Python programming, comments are text within the code that are ignored by the interpreter or compiler. They are used to explain what the code does, add notes or reminders, or to disable certain parts of the code during testing or debugging.
Comments are useful because they make the code more readable and help other programmers understand your intentions. Python supports two types of comments:
Single-line comments: These start with the hash symbol (#) and continue until the end of the line. Anything after the hash symbol on a line is ignored by the interpreter.
For example:


