September 2026
1051 pages
35h 4m
English
You can certainly imagine that the goal is not to write programs that would fit on a postcard. Over time, the source code of your programs will become more extensive and complex. At some point, the time is reached when mere memory training is no longer sufficient to keep track of things. That’s the point when comments come into play, at the latest.
A comment is a small piece of text that explains a certain part of the source code to point out problems, open tasks, or similar things. A comment is ignored by the interpreter, so it doesn’t change the flow of the program.
The easiest way to write a comment is to use the line comment. This type of comment starts with the # character and ends with the end of the line:
# An example ...
Read now
Unlock full access