Kodewick
Start learning →
Starter←→0 / 100

Celsius to Fahrenheit

#068StarterFunctionsNumbers3 min

On a trip to the US the forecast is in Fahrenheit. The formula is °F = °C × 9 / 5 + 32. Write c_to_f(c) to return the Fahrenheit value, rounded to 1 decimal place with round.

Examples
c_to_f(100)→212.0
c_to_f(25)→77.0
main.py
def c_to_f(c):
    f = 0
    # your code here: work out f with the formula

    return round(f, 1)
Ctrl + Enter runs too
Result

Run tries the examples. When they look right, Submit.