Editing DS4UX (Spring 2016)/Day 2 lecture
From CommunityData
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 73: | Line 73: | ||
=== loops and more flow control === | === loops and more flow control === | ||
* <tt>for</tt> loops | * <tt>for</tt> loops | ||
Line 95: | Line 94: | ||
* <tt>break</tt> | * <tt>break</tt> | ||
* <tt>input()</tt> | * <tt>input()</tt> | ||
=== dictionaries === | |||
* purpose | |||
* initialization | |||
* accessing elements | |||
* adding elements | |||
* changing elements | |||
* <tt>keys()</tt> and <tt>values()</tt> | |||
=== modules === | === modules === | ||
* purpose | * purpose | ||
* builtins | * builtins | ||
* imports | |||
* <tt>import random</tt> | * <tt>import random</tt> | ||
* <tt>random.randint</tt> | * <tt>random.randint</tt> | ||
* <tt>random.choice</tt> | * <tt>random.choice</tt> | ||
=== walk through | === walk through state_capitals.py === | ||
Where | |||
Where state_capitals.py from http://mako.cc/teaching/2015/cdsw-spring/state_capitals.py is the grand finale and synthesis of lecture material. | |||
<!-- | |||
=== TODO incorporate Baby Names coding challenges prep === | |||
[[DS4UX_(Spring_2016)/Day_2_followup]] | |||
--> | |||
[[Category:DS4UX (Spring 2016)]] | [[Category:DS4UX (Spring 2016)]] |