Lesson 2: Writing simple programs
Outline:
- Recap Lesson 1
- course policies (syllabus)
print()andinput()- classwork
- Assignment #1
- Elements of programs
- identifiers
- expressions
- statements
- Identify the parts of the
chaos.pyprogram
Explore after class:
- Elements of programs, continued
- definite loops via
range()
- definite loops via
- Practice with loops: Exercise 4
Want more practice?
- Runestone:
Reading assignment (to be completed by the next class):
- Zelle chapter 2 (pp. 27-51)