Odds & Ends from Chapter 2
Programming and Program Language Vocabulary
Metalanguage (used in line completion hint): [optional], ..., <replace>
"_" in names and "_" as a name in the interpreter
Storage and Names
Capturing results and Nesting
x = f(1)
f(x)
or
f(f(1))
Key word vs. Reserved word
def vs. range, note color scheme in IDLE
Table page 30
Expression vs. Statement
Simultaneous assignments and swapping values
Variables in functions are local to functions
Definite Loops
in, range(), and lists, e.g.,lst = range(10)
for i in lst:
print ifor i in [9, 11, 19]:
print i