Solve a couple of Python tutorial problems.