Community Data Science Workshops (Fall 2014)/Day 1 lecture: Difference between revisions
Content added Content deleted
imported>Mako |
imported>Mako |
||
Line 33: | Line 33: | ||
#*** also >, <, and != |
#*** also >, <, and != |
||
#** type() shows that the output of True or False is <code>bool</code> |
#** type() shows that the output of True or False is <code>bool</code> |
||
#** "i" in "team" |
#** e.g., <code>"i" in "team"</code> |
||
#** "i" not in "team" |
#** e.g., "i" not in "team"</code> |
||
#* <tt>if</tt>/<tt>elif</tt>/<tt>else</tt> |
#* <tt>if</tt>/<tt>elif</tt>/<tt>else</tt> |
||
#* functions |
#* functions |
||
Line 49: | Line 49: | ||
#* strings are like lists |
#* strings are like lists |
||
#** len() |
#** len() |
||
#*** <code>len("")</code> length of the empty string |
|||
# loops and more flow control |
# loops and more flow control |
||
#* <tt>for</tt> loops |
#* <tt>for</tt> loops |