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")
6 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")
+ 4
I am not quite sure that â„ symbol will be interpreted successfully in Python. Consider changing it to >=
+ 2
Capital "B" on boiling!!!!! 20 min laterđ€đ
+ 1
space before print!
0
print("Enter your Boiling Temperature")
temp = int(input())
if temp >= 100:
print("Boiling")