A Comment on Comments In Programming Languages…
- A Comment on Comments:
- One of the most important of programming tools is comments!
- Comments are just lines in the programs which describe what’s going on.
- Comments can tell the programmer what’s going on and more importantly why!
- Good comments are important if the programmer reading the code isn’t the one who wrote it, or, it’s been a long time since they wrote it.
Another way of thinking about comments is that, “comments are Code!“, and rather than comments explaining code to other programmers, CODE explains the comments to the computer!
Either way comments are useful and important and every language has a way of indicating comments.
Python uses a ‘#’ symbol as its comment marker. Anything following a # is ignored.