0

Why did i get infalid syntax?

Temp = int(input()) if (temp >= 100) print ("Boiling")

28th Nov 2021, 1:48 AM
Faisal Aditya
2 Respuestas
+ 3
Faisal Aditya Probably because the test input had a decimal in it, IE: 97.6 Try changing to temp = float(input()) Also put : after your if condition and make sure you indent the statement associated with your condition if temp >= 100: print("Boiling")
28th Nov 2021, 1:59 AM
Rik Wittkopp
Rik Wittkopp - avatar
+ 1
Thanks appreciate 💓
28th Nov 2021, 3:06 AM
Faisal Aditya