← Back to Functions
Question 327
Celsius To Fahrenheit Function
Celsius To Fahrenheit Function
Complete celsius_to_fahrenheit(celsius: float) -> float so it returns the temperature converted with the formula multiply by 9, divide by 5, then add 32. The driver reads one number and prints what the function returns; leave it alone. Input: one line, a temperature in Celsius, no prompt. Output: the Fahrenheit value as Python prints a float.
Expected Output:
212.0= newline. The output ends with a newline — print one after the last line.
Hints2 available
Sign in to use hintsTopics:
Functions
1
Tab to indent (Esc then Tab to move on) · Ctrl+Enter to run · Ctrl+Space to expand shortcuts (pr, inp, def)
Your Output
Run your code to see the output here...
Test Cases
Run your code to see test case results.