Python Comments Flashcards

1
Q

How do you create a comment in Python?

A

Place the ‘#’ symbol at in front of code that will not be executed

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How do you create a multi-line comment?

A

Triple quotes in this form:
“””
Commented code
“””

How well did you know this?
1
Not at all
2
3
4
5
Perfectly