Python Basics
(Learn Python Programming in 20 Minutes)
3 Python commands
3.1 Comments
In a Python command, anything after a # symbol is a
comment. For example:
print "Hello world" #this is silly
Comments are not part of the command, but rather intended
as documentation for anyone reading the code.
Multiline comments are also possible, and are enclosed by
triple double-quote symbols:
"""This is an example of a long comment
that goes on
and on
and on."""
No comments:
Post a Comment
Your feedback is highly appreciated and will help us to improve our content.