Lesson 2: Writing simple programs

Outline:

  1. Mini-quiz
  2. Recap lesson 1
  3. Elements of programs
    • identifiers
    • expressions
    • statements
      • output
      • assignment (simple, simultaneous)
  4. Identify the parts of the chaos.py program
  5. Exercises 1-3
  6. Elements of programs, continued
    • definite loops
      • lists
      • range()
  7. Exercise 4
  8. Discuss loop outputs
  9. Exercise 5
  10. Discuss exercise 5

Reading assignment (to be completed by the next class):

  • Zelle chapter 2 (pp. 27-51)