Exercises: Exercises 4: Sequences & For Loops
This week has 3 exercise notebooks:
-
A_ex_misc_sequences.ipynbgives practice with indexing, lists, and therangefunction that you'll be using in the other notebooks. B_ex_lec_for_value_loops.ipynbgives practice with standard uses offorloops to iterate over the values in a sequence.C_ex_lab_advanced_for_loops.ipynbcovers more advanced uses offorloops, including index loops, tracking variable, and early exit from loops.
You should finish most of these notebooks before starting project 4 because they will help you succeed on that project.
Code
Click on this
ex04_sequences_and_for_loops.zip link
to download the .zip file for this week to your computer. Unzip the
downloaded ex04_sequences_and_for_loops.zip file (by double-clicking on it) to reveal a
folder with the notebook file(s) for these exercises.
Solutions
Once you have completed all exercises and the deadline has passed, you can find links to the solutions for each individual notebook via the Potluck dashboard.