Category: Learn Python the Hard Way Exercise 2

LPTHW - Exercise 2: Comments and Pound Characters

LPTHW - Exercise 2 Another gentle intro/recap of the first lesson. # 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.") Learn Python The Hard Way Study Drills 1.

Read more...