Class 13, Wednesday, February 14
Nested looping, dataset analysis
In a loop, a loop — Nesting, but not like a bird — Repeating again
It’s Valentine’s Day — Give the ones you love your time— For they are fleeting
Look both ways
Agenda
- Introduce nested looping
- Continue examination of web data sets
Best sellers
- How many of these books have you read?
A tool for problem solving
Examples
- Reports on both overall and word-by-word vowel usage for user-supplied text
- Shows heretofore unspoken capability of the
print()
function
- For a user-supplied
n
, loop n times where on ther
th iteration, the row of integers from 1 tor
are printed out
- For a user-supplied
r
, the row of integers from 1 tor
are printed out
- Shows a dataset of best selling fiction