Activity 2.11.1.
What are comments used for?
-
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!

