Midweek mercury mystery

Report a typo

A weather app stores daily temperatures in a list. Can you fill in the blanks to display the temperature for Wednesday? Remember, Python uses zero-based indexing for lists.

Fill in the gaps with the relevant elements
temperatures = [22, 24, 26, 28, 27, 25, 23]
wednesday_temp = temperatures[2]
("The temperature for Wednesday is: {wednesday_temp}°C\n")
fidisplayprint

Create a free account to access the full topic