30th Python exercise