- 1

If statment program

Write a program that checks if the water is boiling. Take the integer temperature in Celsius as input and output "Boiling" if the temperature is above or equal to 100. My program 👇 temp = int(input()) if temp >= 100: print("Boiling") What's wrong in these??

30th Dec 2021, 2:44 PM
Kadam Rutuja Chandrakant
Kadam Rutuja Chandrakant - avatar
6 Réponses
+ 2
temp = int(input()) if temp >= 100: print("Boiling") #This will work #learn about indentation in python
30th Dec 2021, 4:37 PM
NEZ
NEZ - avatar
+ 1
Use indentation for print statement
30th Dec 2021, 3:30 PM
Sanjyot21
Sanjyot21 - avatar
+ 1
NEZ Thanks 👍..it really works
30th Dec 2021, 5:02 PM
Kadam Rutuja Chandrakant
Kadam Rutuja Chandrakant - avatar
0
PyNon When i run the program it says line 3 excepted an indented block
30th Dec 2021, 2:55 PM
Kadam Rutuja Chandrakant
Kadam Rutuja Chandrakant - avatar