How do I add a comment to my Pep8 code?
Asked
Active
Viewed 872 times
2 Answers
2
Use a semi-colon(;)
;This is a comment
The comment should turn green.

Paul R
- 208,748
- 37
- 389
- 560

plasticGlasses
- 21
- 1
- 5
0
You can add a comment to the code using # symbol.Comments should be separated by at least two spaces from the statement. They should start with a # and a single space. Multi-line comments can be done using """Triple-Quotes""" eg: x=x+1 # Increment x by 1

Shreya jain
- 1
- 1
-
This is for Python, not PEP/8 assembly. – Fred Larson May 25 '18 at 19:10