+ 3

Boiling point - stuck

I'm doing the boiling point practice and I keep getting a syntax error. temp = int(input()) if temp >= (number): print("Boiling")

13th Feb 2021, 10:45 PM
Alita Tripp
Alita Tripp - avatar
5 Antworten
+ 3
Alita Tripp Even if I don't know the details, your code has a problem. 'number' variable is undefined. Since it is about 'Boiling point', then I will assume that, that number is supposed to be 100. __________________ temp = int(input()) if (temp >= 100): print("Boiling") __________________ If this still does not work, just change the 'int(input())' to 'float(input())'. Or give us more details about the problem. Thanks!
14th Feb 2021, 1:17 AM
noteve
noteve - avatar
0
The code is on the bottom
14th Feb 2021, 12:46 AM
Alita Tripp
Alita Tripp - avatar
0
Try this bill Temp = int(input()) If temp >= 100: print ("Boiling") If temp < 99: print ("")
2nd Apr 2022, 9:06 AM
daniel meredith
- 1
Temp = int(input()) If temp >= 100: print ("Boiling") If temp < 99: print ("")
21st Feb 2022, 1:13 PM
daniel meredith
- 2
Here goes temp=int (input ("Enter temperature reading")) boiling=100 if temp==boiling : print ("You at boiling point!") else: print ("Not boiling")
24th Jun 2021, 7:34 AM
Doug Shon
Doug Shon - avatar