+ 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")
5 Answers
+ 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!
0
The code is on the bottom
0
Try this bill
Temp = int(input())
If temp >= 100:
print ("Boiling")
If temp < 99:
print ("")
- 1
Temp = int(input())
If temp >= 100:
print ("Boiling")
If temp < 99:
print ("")
- 2
Here goes
temp=int (input ("Enter temperature reading"))
boiling=100
if temp==boiling :
print ("You at boiling point!")
else:
print ("Not boiling")