Lecture: Sequences and Loops

Slides

The following material will be covered over two lectures.

  1. Sequences and Loops - PDF Slides.
  2. Graphics with Loops examples - PDF Slides.

Readings

Think Python, Ch. 8: Strings.

Connection Articles

Read the news article associated with today's date (one article only). There will be some warm-up questions about it in lecture using Plickers.

Code

Click on the lec_sequences_loops.zip to download the .zip file to your computer. Folder contains the notebook and code for lecture activities.

Solutions (for after class)

Use these sample solutions for review only after you have completed the code exercises. You will learn much more by trying them first and comparing your approach with the solutions.

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