Deals Of The Week - hours only!Up to 80% off on all courses and bundles.-Close
Basic utility functions
Basic manipulation functions
Replacing and splitting
13. Quiz project


We've prepared a task to check how much you remember from this part of the course.


You are given a string named temperatures. This string contains temperature measurements from selected cities in Poland. Analyze the contents of temperatures, and print the average decimal temperature based on the measurements:

The average temperature is: {x}

Note: Some lines may contain incorrect, non-numeric temperature values. Simply ignore them.

Stuck? Here's a hint!

You will need to split the string twice: first by \n characters and then by commas. The isnumeric() function may also come in handy.