Exercises · Q10
Q.Write a Python program to convert temperature in degree Celsius to degree Fahrenheit. If water boils at 100 degree C and freezes as 0 degree C, use the program to find out what is the boiling point and freezing point of water on the Fahrenheit scale.
(Hint: T(°F) = T(°C) × 9/5 + 32)
Odisha ChseTextbookSubjective· 3mImportance★★★★★est
76% · 37/49 Questions
You're viewing a preview — the full solution, concept, methods & PYQ mapping are locked.
Start your 14-day free trial to unlock the full solution →Read the Celsius temperature, apply fahrenheit = celsius * 9/5 + 32, and print — the program shows water boils at 212.0 °F and freezes at 32.0 °F.
This is a direct formula-translation program: the skill is converting the given rule T(°F) = T(°C) × 9/5 + 32 into a Python arithmetic expression, remembering that input() returns a string and must be converted with float() before arithmetic.
# Convert temperature from degree Celsius to degree Fahrenheit
celsius = float(input("Enter temperature in degree Celsius: "))
fahrenheit = celsius * 9/5 + 32
print(celsius, "degree Celsius =", fahrenheit, "degree Fahrenheit")
Key lines:
float(input(...))— accepts values like 36.6 too, not just whole numbers.celsius * 9/5 + 32— evaluated left to right:*and/share precedence (celsius × 9, then ÷ 5), and+ 32happens last, exactly matching the formula. No parentheses are needed, though(celsius * 9/5) + 32reads more explicitly.
Run 1 — boiling point of water (100 °C):
Enter temperature in degree Celsius: 100
100.0 degree Celsius = 212.0 degree Fahrenheit
Check: 100 × 9/5 = 180; 180 + 32 = 212. ✓ …
Unlock everything free for 14 days
- Full step-by-step solutions
- Concept-first explanations
- Methods, shortcuts & mistakes
- PYQ mapping + timed mock tests
Full access for 14 days. No credit card required.