Community Data Science Workshops (Fall 2014)/Day 1 lecture: Difference between revisions
Content added Content deleted
imported>Mako |
imported>Mako |
||
Line 94: | Line 94: | ||
** show we can test things outside the loop to show how the comparisons are working |
** show we can test things outside the loop to show how the comparisons are working |
||
** add an else statement to capture words that start with a consonant |
** add an else statement to capture words that start with a consonant |
||
** append to a list within a for loop |
|||
** create a counter within a for loop (keep track) |
|||
* nested <tt>for</tt> loops |
* nested <tt>for</tt> loops |
||
* <tt>range()</tt> |
* <tt>range()</tt> |