While Loops, Early Return, List Accumulation

Slides

A PDF file of the lecture slides handout on while loops and early return.

A PDF file of the lecture slides handout on list accumulation patterns.

Readings

Think Python, Ch. 9: Iteration.

Think Python, Ch. 10: Lists.

Code

Click on this lec_temp_while_lstaccum.zip link to download the .zip file to your computer. The unzipped folder contains the notebook for lecture activities.

Solutions

I have made a genuine effort to complete the code exercises. Show me the solutions.