Exercise 2: Comments And Pound Characters

# 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."

 

Fix mietakes

# 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." # changed
print "This will run."

 

posted @ 2014-10-21 09:06  林中细雨  阅读(145)  评论(0编辑  收藏  举报