Community Data Science Workshops (Fall 2014)/Day 1 lecture: Difference between revisions
Content added Content deleted
imported>Jtmorgan (copy over content from Community_Data_Science_Workshops_(Spring_2014)/Saturday_April_5th_lecture) |
imported>Mako |
||
Line 10: | Line 10: | ||
# review Friday material |
# 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> |
#* <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 |
#* variables |
||
#** assignment of variaibles |
|||
#** e.g., math with variables: scale up a recipe, into an assignment |
|||
#* strings |
#* strings |
||
#* booleans |
#* booleans |
||
#* <tt>if</tt>/<tt>elif</tt>/<tt>else</tt> |
#* <tt>if</tt>/<tt>elif</tt>/<tt>else</tt> |
||
#* functions |
#* functions |
||
#** exit(), help(), type() |
|||
# lists |
# lists |
||
#* purpose |
#* purpose |