Pages
Home
Contact Me
Sunday, February 9, 2014
How to insert comments in python?
To insert comments in python simply add
# (mesh character) before your comments.
As example:
#this is a comment in python, the program will just ignore this line of code
You may also insert comments on the same line of your code, just write
# and whatever you write after it will be ignored by python:
print 'Hello world!'
#but this comment will not be displayed
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment