Python Workshops for Beginners/Saturday September 27th lecture

Welcome to the first Saturday lecture of the Python Workshops for Beginners! For about 2 hours, we'll work through an introduction to the Python programming language via both a lecture and hand-on exercises.

Resources

 * Python data types cheat sheet
 * Python loops cheat sheet
 * provincial_capitals.py -- the provincial capitals example.
 * Full slides deck

Part 1
Slides can be found here: https://csclub.uwaterloo.ca/~ehashman/pwfb/pwfb-1p1.pdf


 * 1) review Friday material
 * 2) * math
 * 3) * type
 * 4) * variables
 * 5) * strings
 * 6) * booleans
 * 7) * if/elif/else
 * 8) * functions
 * 9) lists
 * 10) * purpose
 * 11) * initialization
 * 12) * len review
 * 13) * accessing elements
 * 14) * adding elements
 * 15) * changing elements
 * 16) * slicing lists
 * 17) * strings are like lists
 * 18) loops and more flow control
 * 19) * for loops
 * 20) * if statements inside for loops
 * 21) * nested for</tt> loops
 * 22) * range</tt>
 * 23) * while</tt> loops
 * 24) * infinite loops
 * 25) * if</tt> statements inside while</tt> loops
 * 26) * break</tt>
 * 27) * raw_input</tt>
 * Break and exercise!

You will need the following code: grades = [86, 71, 91, 62, 85, 86, 72, 58, 65, 77, 54, 53, 56, 91, 93, 58, 80, 74, 75, 64]

Part 2
Slides can be found here: https://csclub.uwaterloo.ca/~ehashman/pwfb/pwfb-1p2.pdf


 * 1) dictionaries
 * 2) * purpose
 * 3) * initialization
 * 4) * accessing elements
 * 5) * adding elements
 * 6) * changing elements
 * 7) * keys</tt> and values</tt>
 * 8) modules
 * 9) * purpose
 * 10) * builtins
 * 11) * imports
 * 12) * import random</tt>
 * 13) * random.randint</tt>
 * 14) * random.choice</tt>
 * 15) * walk through provincial_capitals.py

Where provincial_capitals.py from https://csclub.uwaterloo.ca/~ehashman/pwfb/provincial_capitals.py is the grand finale and synthesis of lecture material.