Fahrenheit for the Visitors

Data with PythonEasy+10 XP+10

Fahrenheit for the Visitors

A weather board at a seaside town shows temperatures in °C. Many visitors read °F, so the board needs a second line.

To turn one temperature from °C into °F, multiply it by 9, divide by 5, then add 32.

Task: write to_fahrenheit(celsius). celsius is a list of temperatures in °C. Return every temperature in °F, as a plain list, in the same order. Round each value to 1 decimal place.

There is always at least one temperature.

Examples

celsius = [20, 25.5, -3.2]
returns [68.0, 77.9, 26.2]
celsius = [0, 100]
returns [32.0, 212.0]

Hints

Solve it to unlock the solution

Once your code passes every test, a reference solution shows up here so you can compare it with yours.

solution.py
CtrlEnterto run