Week 4 For Loops, Lists, and Testing
For loops and testing - What are the mechanistic structures by which we have the computer process information? How do we write robust code. ๐ง
Counter with recipe book open to recipe and spatulas. Photo by Jonny Gios on Unsplash
Tasks
- Complete the readings
- Complete the assignments
- Watch the short video on for loops.
- Watch the short video on lists
Topic Intro
No. |
Title |
Slides |
|
|---|---|---|---|
| 01 | For Loops | ||
| 02 | Lists | ||
| 03 | Function Testing |
Class Activities
Activity |
Title |
Date |
|---|---|---|
| Topic Intro | For Loops | Tue, 31 Jan |
| Topic Intro | Lists | Wed, 1 Feb |
| Topic Intro | Function Testing | Fri, 3 Feb |
| Lab 2 | Contagion: Documentation and Testing | Fri, 3 Feb |
Assignments
Assignment |
Title |
Due |
|---|---|---|
| Due this week | ||
| R 02 | How does it work? | Sun, 5 Feb, 23:59 EST |
| Due next week | ||
| Lab 02 | Contagion: documented | Wed, 8 Feb, 23:59 EST |
| Lab 02 | Contagion: with for loops (bonus practice) | Wed, 8 Feb, 23:59 EST |
Readings
| ๐ | Writing Good Code by Python Like You Mean It | Optional |
| ๐ | Pep8 Style guide | Optional |
| ๐ | Think CS Py: Sections 4.4 and 4.5 For Loops | Required |
| ๐ | Review: W3 Schools: Python Lists | Required |
| ๐ | For Loops Cheatsheet | Required |
| ๐ | Debugging Tip: Check your assumptions by Julia Evans | Required |