plasticGlasses
plasticGlasses

Reputation: 21

How do you make a comment in Pep8

How do I add a comment to my Pep8 code?

Upvotes: 0

Views: 1040

Answers (2)

Shreya jain
Shreya jain

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

plasticGlasses
plasticGlasses

Reputation: 21

Use a semi-colon(;)

;This is a comment

The comment should turn green.

Upvotes: 2

Related Questions