Python exercise 1.
Python exercises 1-7.