Editing Community Data Science Workshops (Spring 2015)/Day 1 lecture
From CommunityData
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 8: | Line 8: | ||
* [[Python loops cheat sheet]] | * [[Python loops cheat sheet]] | ||
* [http://mako.cc/teaching/2015/cdsw-spring/state_capitals.py state_capitals.py] -- the state capitals example. | * [http://mako.cc/teaching/2015/cdsw-spring/state_capitals.py state_capitals.py] -- the state capitals example. | ||
== Lecture outline == | == Lecture outline == | ||
Line 16: | Line 15: | ||
* math: using python as a calculator | * math: using python as a calculator | ||
**addition, subtraction, multiplication, division | **addition, subtraction, multiplication, division | ||
**division shows something different: | **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) | ** there are different types of things in python (called objects) | ||
Line 127: | Line 126: | ||
Where state_capitals.py from http://mako.cc/teaching/2015/cdsw-spring/state_capitals.py is the grand finale and synthesis of lecture material. | Where state_capitals.py from http://mako.cc/teaching/2015/cdsw-spring/state_capitals.py is the grand finale and synthesis of lecture material. | ||