40th Python exercise