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

imported>Mako
imported>Mako
Line 20:
#** e.g., math with variables: scale up a recipe, into an assignment
#* 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
#* <tt>if</tt>/<tt>elif</tt>/<tt>else</tt>
Anonymous user