Tag: Lpthw

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

LPTHW - Exercise 1: A Good First Program

LPTHW - Exercise 1 Pretty simple introduction this, just a few print statements. Example code will be below the answers to the student questions... # print("Hello again!") # print("I Like typing this.") # print("This is fun.") # print('Yay! Printing.') # print("I'd much rather you 'not'.") # print('I "said" do not touch this.') print "This is another line." Learn Python The Hard Way Study Drills 1. Make your script print another line.

Read more...

Learn Python The Hard Way

In addition to the Odin Project I've decided to simultaneously undertake the Learn Python The Hard Way course by Zed Shaw. Learning two things at once might sound overkill but spending 6 hours plus a day on one topic can just lead to burnout. So, with a range of things to cover, I hope to spread out the brain pain and probably learn a little faster or more deeply than I would otherwise.

Read more...