0
At Boiling Point! Question
The answer to this question is temp = float(input()) if temp >= 100: print("Boiling") However if you run the same script but without : after the 100 why does it give an error? (example below) temp = float(input()) if temp >= 100 print("Boiling") ERROR
2 Réponses
+ 4
It's a syntax for if statement.
Like you use parenthesis for print statement.
+ 1
Ahh okay thank you Simba, that makes sense now 🙂