Practice pieces
As you go through the course, you may find you want some example projects to cut your teeth on, but for which you can find some hints and/or answers. This page supplies some of these.
-
Lecture: Introduction
Hello you! – printing from the keyboard. -
Lecture: Variables
Numbers – maths from the keyboard. -
Lecture: Containers
String search – finding words based on punctuation. -
Lecture: Branching & loops
Rabbits – using loops for population models. -
Lecture: Functions
Encryption – using functions to encrypt and decrypt. -
Lecture: Classes
Classes - agent class heirarchy. -
Lecture: I/O
Synthetic landscapes – rather than reading data, make your own. -
Lecture: Modules
Modules – doing statistics with the standard library. -
Lecture: Wrapping up
Coupling & cohesion – refactor and restructure a script.
If you've done the lecture on the web and GUIs, you might also like to try: