Psst! Check what courses we have in our offer, and get them all here to save $727. Act fast–this deal is available only 3/14–3/21.
Introduction
Basic utility functions
Basic manipulation functions
Replacing and splitting
Summary
13. Quiz project

Instruction

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

Exercise

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.