Skip to main content

Comment

During pandemic, zoom has a feature 'comment' that allows you to add a comment to a zoom item.

Similarly, you can add notes in programmiming (Python).

When to use

  1. Explaing the code

  2. What is printed

  3. Commenting code so that it doesn't run

# - One Line Comment

All the characters after # are ignored.

It is only for the humans to read as notes, not a code for the computers to execute.

Multiple Line Comment

For multiple comments, such as very long notes, you can use the ''' ''' and """ """ syntax.

Python Quiz 3

1 Questions
Commenting code so that it doesn't run