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

imported>Jtmorgan
 
imported>Mako
Line 10:
 
# review Friday material
#* math: using python as a calculator
#* math
#**addition, subtraction, multiplication, division
#**division shows something different: 8/2 versus 1/2
#* <tt>type()</tt>
#** there are different types of things in python (called objects)
#** variables that "know about the decimal place" (int) and variables that don't (floats)
#* variables
#** assignment of variaibles
#** e.g., math with variables: scale up a recipe, into an assignment
#* strings
#* booleans
#* <tt>if</tt>/<tt>elif</tt>/<tt>else</tt>
#* functions
#** exit(), help(), type()
# lists
#* purpose
Anonymous user