0
Why did i get infalid syntax?
Temp = int(input()) if (temp >= 100) print ("Boiling")
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")
+ 1
Thanks appreciate 💓