Checkpoint 2.11.1.
- To add notes to code.
- Comments are used to add notes to code.
- To assign names to variables.
- Comments are not read by the program when code is running, so variable assignments should not be commented out.
- To run code.
- Try again! Comments do not run the code.
- To keep track of how many times a loop has iterated.
- Try again! Please do not keep track of iterations in a comment!
csp-10-2-1: What are comments used for?