Session Details
Week 1,
Session 3 — Thu Mar 11
Reading
-
Zelle §2.5 - 2.8
(14 pages)
HW Due
-
HW 2
but the Song 'n' Dance robot project is not due until Session 4 (Monday)
Topics
-
byte code
-
Program output ( print statements)
-
Identifiers, expressions, syntax versus semantics
-
print statements
-
Variables and assignment
-
Definite loops ( for statements)
-
range function
-
math library
-
The accumulator pattern
-
Pair programming
Outline
-
[5 min] Hand-back quizzes, discuss questions
-
[3 min] Configure IDLE:
-
[2 min] Review saving and running Python programs. Byte code (.pyc files).
-
[5 min] Identifiers, expressions
-
[2 min] syntax versus semantics, print statements
-
[3 min] Variables and assignments
-
[5 min] Sequences, lists, range function
-
[3 min] definite loops, for loops, counted loops, examples using loops
-
[15 min] The accumulator pattern
-
[2 min] Types: int and float
-
[2 min] dir and help . Built-in and math library functions
-
[3 min] Break. Get robots from locker if you have not already done so.
-
[5 minutes] Watch this pair programming video
-
[50 min] Do loop practice, using pair programming: factorial.py and barChart.py
Resources
-
Slides:Assignment, loops and types
HW Assigned
-
HW 3