[Solved] Why am i getting a 3/5 test cases fail on the following code? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

[Solved] Why am i getting a 3/5 test cases fail on the following code?

Write a program that checks if the water is boiling. Take the inter temperature in Celsius as input and output "Boiling" if the temperature is above or equal 100. ! Do not output anything if the water is not boiling. #My_Try temp=int(input()) if tempโ‰ฅ100: print("Boiling")

27th Aug 2020, 5:37 AM
Abraham Zimba
Abraham Zimba - avatar
5 Answers
+ 2
and there is should be TAB or a space before print() because it is inside the if statement: temp=int(input()) if temp >= 100: print("Boiling")
27th Aug 2020, 6:07 AM
Muhammadamin
Muhammadamin - avatar
+ 4
I am not quite sure that โ‰ฅ symbol will be interpreted successfully in Python. Consider changing it to >=
27th Aug 2020, 6:04 AM
Artem ๐Ÿ‡บ๐Ÿ‡ฆ
Artem ๐Ÿ‡บ๐Ÿ‡ฆ - avatar
+ 2
Capital "B" on boiling!!!!! 20 min later๐Ÿ˜ค๐Ÿ˜‚
12th Dec 2021, 5:23 AM
Ben E
+ 1
space before print!
12th Dec 2021, 9:03 PM
Abel Solomon
Abel Solomon - avatar
0
print("Enter your Boiling Temperature") temp = int(input()) if temp >= 100: print("Boiling")
9th Nov 2021, 2:44 AM
Peter Aro
Peter Aro - avatar