Concept Flow - Comments in Python
Start of code
Read line
Is line a comment?
Yes→Ignore line, no action
No
Execute line
More lines?
Yes→Read next line
No
End of code
Python reads each line. If it sees a comment (starting with #), it skips it and does not run it. Otherwise, it runs the line.