Editor

Celsius to Fahrenheit

Programs with input · Beginner · about 4 min

Read a temperature in degrees Celsius, a number that may have decimals. Print it in degrees Fahrenheit, rounded to 1 decimal place, as Fahrenheit: 98.6. To convert, multiply by 9, divide by 5, then add 32.

The prompts inside input() are not checked, only what you print.

Example

You type:

37

The program prints:

Fahrenheit: 98.6
c = float(input("Temperature in Celsius: "))
# Convert it and print the result
The solution opens after your first Check.