Community Data Science Workshops (Fall 2014)/Day 1 lecture: Difference between revisions

imported>Mako
imported>Mako
Line 33:
#*** also >, <, and !=
#** type() shows that the output of True or False is <code>bool</code>
#** e.g., <code>"i" in "team"</code>
#** e.g., "i" not in "team"</code>
#* <tt>if</tt>/<tt>elif</tt>/<tt>else</tt>
#* functions
Line 49:
#* strings are like lists
#** len()
#*** <code>len("")</code> length of the empty string
# loops and more flow control
#* <tt>for</tt> loops
Anonymous user