The second Python course: data structures, classes, files and errors · a practice path
Seven sessions that move past basic scripts: comprehensions, dictionaries and counting, recursion and memoizing, classes, handling errors, working with files and a small word-frequency program that uses all of it.
7 sessions. The worked example fills a pace and ticks the first 3, so you can see progress. Ticks and pace are saved on this device only.
Loading Python Programming II. If nothing appears, turn on JavaScript.
Academics · High SchoolOpen to everyone · no sign-in
Writing a prediction before running code trains you to hold a model of what the program does. When the result differs, you have found something to fix in the code or in your model.
The last session combines the earlier ones into a program of about 20 lines. Building bigger programs from tested small parts is the habit that scales.
The tasks are written for this page from the sources listed on it. The worked example is an invented pace. What you type and tick is saved only in this browser and is never sent to Caveat. Support: team@caveatacademic.com.