Introduce 'primitive' types from which other types are built.
string
int
float
Basic math is easy
Explain strong typing
Briefly digress how primitive types internally are represented by binary, very briefly digress into explaining binary, mention other common numbering system -- duodecimal (base-12) of ancient Sumer and India, now used for telling time (24 = 2 parts of 12). TODO -- more reasearch wiki
Explain str
introduce classes
Note that most of other kinds of things use this type, i.e. screen 2-dimensional array of triplet integers (Red-Green-Blue), date/time -- seconds since 1970, or a type with different members, year, month, day, hour minute, second. Come up with an example of methods based on datetime/timedelta class
Introduce functions as stand-alone methods
....
introduce dictionaries as containers without associated functions
.....
Introduce lists
Ordered containers 'without' arbitrary keys. Tuple is immutable list, string is an instance of tuple
Final exercise -- count the number of days since the new year. More in-depth exploration of datetime/timedelta.
Introduce variables
Introduce 'primitive' types from which other types are built.
string int float
Basic math is easy
Explain strong typing
Briefly digress how primitive types internally are represented by binary, very briefly digress into explaining binary, mention other common numbering system -- duodecimal (base-12) of ancient Sumer and India, now used for telling time (24 = 2 parts of 12). TODO -- more reasearch wiki
Explain str
introduce classes
Note that most of other kinds of things use this type, i.e. screen 2-dimensional array of triplet integers (Red-Green-Blue), date/time -- seconds since 1970, or a type with different members, year, month, day, hour minute, second. Come up with an example of methods based on datetime/timedelta class
Introduce functions as stand-alone methods
....
introduce dictionaries as containers without associated functions
.....
Introduce lists
Ordered containers 'without' arbitrary keys. Tuple is immutable list, string is an instance of tuple
Final exercise -- count the number of days since the new year. More in-depth exploration of datetime/timedelta.