CJCoding With Joseph
15free / daySign inCreate account

Fahrenheit To Celsius

Ask for a temperature in Fahrenheit with the prompt Fahrenheit? (space after the question mark), convert it with float(), subtract 32, multiply by 5 and divide by 9, then print the Celsius value with one decimal followed by a space and the letter C, as in 100.0 C. Input: one line, a number. The prompt is part of the output and input() stays on the same line, so the prompt and the result share one output line.

Expected Output:

Fahrenheit? 100.0 C

= newline. The output ends with a newline — print one after the last line.

Hints2 available
Topics:
User Input
📥 Auto-Input:
212\n
This input is automatically fed to your program's stdin
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.