How do you make a comment in Pep8

955 Views Asked by At

How do I add a comment to my Pep8 code?

2

There are 2 best solutions below

0
plasticGlasses On

Use a semi-colon(;)

;This is a comment

The comment should turn green.

1
Shreya jain On

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