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

imported>Mako
imported>Mako
Line 38:
* <tt>if</tt>/<tt>elif</tt>/<tt>else</tt>
** if, something that evaluates to a boolean, and then colon
** e.g., <code>if "mako" in "makoshark"</code>
** e.g., adding else example: </code>if mako_age > atom_age</code>
** indent with spaces (we use 4 spaces!)
* functions
Anonymous user