Community Data Science Workshops (Fall 2014)/Day 1 lecture: Difference between revisions
Content added Content deleted
imported>Mako |
imported>Mako (→Lists) |
||
Line 49: | Line 49: | ||
=== Lists === |
=== Lists === |
||
⚫ | |||
# lists |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
* adding elements |
|||
* changing elements |
|||
* slicing lists |
|||
⚫ | |||
* strings are like lists |
|||
⚫ | |||
#* strings are like lists |
|||
⚫ | |||
⚫ | |||
⚫ | |||
=== loops and more flow control === |
|||
#* <tt>for</tt> loops |
|||
* <tt>for</tt> loops |
|||
* <tt>if</tt> statements inside <tt>for</tt> loops |
|||
* nested <tt>for</tt> loops |
|||
* <tt>range()</tt> |
|||
* <tt>while</tt> loops |
|||
* infinite loops |
|||
* <tt>if</tt> statements inside <tt>while</tt> loops |
|||
⚫ | |||
* <tt>break</tt> |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
* accessing elements |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
Where state_capitals.py from http://mako.cc/teaching/2014/cdsw/state_capitals.py is the grand finale and synthesis of lecture material. |
Where state_capitals.py from http://mako.cc/teaching/2014/cdsw/state_capitals.py is the grand finale and synthesis of lecture material. |