Take the integer temperature in Celsius as input and output "Boiling" if the temperature is above or equal to 100. Write pgrm .. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 2

Take the integer temperature in Celsius as input and output "Boiling" if the temperature is above or equal to 100. Write pgrm ..

I passed test 2 ,3and 4 but 1 and 5 is not coming correct. How to solve it ..

3rd Mar 2022, 2:17 PM
Pritika Rathod
3 Answers
+ 3
It just need one if block Condition, temperature >= 100 show your code, let's see why it's not working
3rd Mar 2022, 3:01 PM
NonStop CODING
NonStop CODING - avatar
+ 2
temp = int(100) if temp>=100: print("Boiling") temp= int(99) if temp>=100: print("Boiling").
4th Mar 2022, 1:46 AM
Pritika Rathod
0
G'day NonStop CODING that is only true for standard atmospheric conditions at sea level. If you decrease atmospheric pressure then the boiling point for H20 becomes less than 100°c. Eg at +305m (1000feet) it is 98.9°c. That doesn't seem like much, but from practical experience: an "instant boiling water" company that used a digital controller with a thermocouple sensor and 97+-2° as their setpoint/differential had issues when their unit was installed at 980m elevation. The unit boiled dry and failed. Simple fix, adjust the setpoint a few degrees lower. ☕
3rd Mar 2022, 8:53 PM
HungryTradie
HungryTradie - avatar