Anonymous user
Boston Python Workshop 5/Staff notes: Difference between revisions
Boston Python Workshop 5/Staff notes (view source)
Revision as of 15:56, 4 March 2012
, 12 years agono edit summary
imported>Jesstess (Created page with '=== Saturday Project outlines === ==== ColorWall ==== # Review relevant material from lecture (e.g. dictionaries) # Go over SolidColorTest and DictionaryTest in effects.py as a …') |
imported>Jesstess No edit summary |
||
Line 1:
===
<b>review Friday material</b>
* math
* type()
* variables
* strings
* booleans
* if/elif/else
* functions
<b>lists</b>
* why use them
* initialization
* type() review
* len() review
* accessing elements
* adding elements
* changing elements
* slicing lists
* strings are like lists
<b>loops and more flow control: for, while, break</b>
* for loops
* range()
* if statements inside for loops
* for loops inside for loops
* while loops
* infinite loop
* break
* if statements inside while loops
* raw_input
<b>dictionaries</b>
* why use them, key constraint
* initialization
* adding elements
* accessing elements
* changing elements
* keys() and values()
<b>modules</b>
* why modules
* len and type are built in
* imports
* import random
* random.randint
* random.choice
* ColorWall example
* state_capitals.py
Where state_capitals.py from http://mit.edu/jesstess/www/BostonPythonWorkshop5/state_capitals.py is the grand finale and synthesis of lecture material.
=== Saturday Project outlines ===
==== ColorWall ====
# Review relevant material from lecture (e.g. dictionaries)
|