2.3. Comments

As with most scripting and Unix-shell languages, the hash/pound ( # ) sign signals that a comment begins right from the # and continues till the end of the line.

>>> # one comment
>>> print 'Hello World!'   # another comment
Hello World!

Get Core Python Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.