Basic Python exercises

In what follows, we unleash our Python programming skills on some (not-yet-statistical-inference) problems!