0

How do I add a comment to my Pep8 code?

BookOfGreg
  • 3,550
  • 2
  • 42
  • 56

2 Answers2

2

Use a semi-colon(;)

;This is a comment

The comment should turn green.

Paul R
  • 208,748
  • 37
  • 389
  • 560
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