python-hard-way/2/ex2.py

21 lines
497 B
Python
Raw Permalink Normal View History

2018-08-31 23:47:16 +00:00
# Comments for reading how your program works later.
print "Code before comments" # Prints "Code before comments"
# Disabled code. Non-functional
# print "Won't run."
print "This will run."
# A comment, this is so you can read your program later.
# Anything after the # is ignored by python.
print "I could have code like this." # and the comment after is ignored.
# You can also use a comment to "disable" or comment out a piece of code:
# print "This won't run."
print "This will run."