Community Data Science Workshops (Fall 2014)/Day 1 lecture: Difference between revisions
Content added Content deleted
imported>Mako |
imported>Mako |
||
Line 20: | Line 20: | ||
#** e.g., math with variables: scale up a recipe, into an assignment |
#** e.g., math with variables: scale up a recipe, into an assignment |
||
#* strings |
#* strings |
||
#** things within quotation marks |
|||
#** adding strings with "concatination" (smushing things together) |
|||
#** e.g., <code>print("Hello" + name)</code> |
|||
#** concatenating strings and integers don't work (e.g., <code>print(1 + "mako")</code>) |
|||
#** 1 is different than "1"; name is different than "name" |
|||
#** single quotes versus double quotes (python doesn't care) |
|||
#* booleans |
#* booleans |
||
#* <tt>if</tt>/<tt>elif</tt>/<tt>else</tt> |
#* <tt>if</tt>/<tt>elif</tt>/<tt>else</tt> |