A comment is explanatory text placed alongside code to clarify what it does or why it is written that way. Comments do not change execution, but they can make a growing project easier to understand. section 14.0
Commenting a file-reading function
A documented read_menu function can describe its purpose and parameters with a docstring, then use short inline comments to explain opening the file, removing whitespace, and handling missing files or permissions.









