Comments are the most important additions to a program, that describe what your program, or blocks of code, do. In Python, a comment line begins with the hash # symbol as shown below.
Why are comments so important?
- Comments explain what your program, or blocks of code are supposed to do. This is important if someone else looks at your program, such as another programmer, or an examiner.
- Comments will get you extra points in your exam. Even if your program is not working perfectly, your comments will score points. Extra points can the difference between one grade, and another!
- comments: an explanation of what your program, or blocks of code, are supposed to do, that score points in your exam! In Python a comment line begins with the hash # symbol