Lesson 2: Writing simple programs
Outline:
- Mini-quiz
- Recap lesson 1
- Elements of programs
- identifiers
- expressions
- statements
- output
- assignment (simple, simultaneous)
- output
- identifiers
- Identify the parts of the
chaos.py
program - Exercises 1-3
- Elements of programs, continued
- definite loops
- lists
range()
- lists
- definite loops
- Exercise 4
- Discuss loop outputs
- Exercise 5
- Discuss exercise 5
Reading assignment (to be completed by the next class):
- Zelle chapter 2 (pp. 27-51)