Reputation: 21
How do I add a comment to my Pep8 code?
Upvotes: 0
Views: 1040
Reputation: 1
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
Upvotes: 0
Reputation: 21
Use a semi-colon(;)
;This is a comment
The comment should turn green.
Upvotes: 2