Lesson 2: Writing simple programs

Outline:

  1. Recap Lesson 1
  2. Elements of programs
    • identifiers
    • expressions
    • statements
      • output
      • assignment (simple, simultaneous)
  3. Identify the parts of the chaos.py program
  4. Elements of programs, continued
    • definite loops via range()

Explore after class:

  1. Expressions: Exercises 1 + 2
  2. Loops: Exercise 3

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

  • Zelle chapter 2 (pp. 27-51)