Session Details

Week 1, Session 3 — Thu Mar 11

Reading

  1. Zelle §2.5 - 2.8
    (14 pages)

HW Due

  1. HW 2
    but the Song 'n' Dance robot project is not due until Session 4 (Monday)

Topics

  1. byte code
  2. Program output ( print statements)
  3. Identifiers, expressions, syntax versus semantics
  4. print statements
  5. Variables and assignment
  6. Definite loops ( for statements)
  7. range function
  8. math library
  9. The accumulator pattern
  10. Pair programming

Outline

  1. [5 min] Hand-back quizzes, discuss questions
  2. [3 min] Configure IDLE:
  3. [2 min] Review saving and running Python programs. Byte code (.pyc files).
  4. [5 min] Identifiers, expressions
  5. [2 min] syntax versus semantics, print statements
  6. [3 min] Variables and assignments
  7. [5 min] Sequences, lists, range function
  8. [3 min] definite loops, for loops, counted loops, examples using loops
  9. [15 min] The accumulator pattern
  10. [2 min] Types: int and float
  11. [2 min] dir and help . Built-in and math library functions
  12. [3 min] Break. Get robots from locker if you have not already done so.
  13. [5 minutes] Watch this pair programming video
  14. [50 min] Do loop practice, using pair programming: factorial.py and barChart.py

Resources

  1. Slides:Assignment, loops and types

HW Assigned

  1. HW 3