0
Good morning. Who helps me?
Write a program that checks if the water is boiling. It takes the entire temperature in centigrade as the input and the output "Boiling" if the temperature is greater than or equal to 100. Homework: temp = int(input())
6 Antworten
+ 1
Post your attempt please
+ 1
Hint:
Use an if-statement and print using print()
If you need further help, please link your complete code attempt
+ 1
What's wrong ?
Does your code work ?
0
Your if-statement lacks the ":" in the end.
Mind that indentation is critical in Python: Please check the indentation again.
Also, the output string needs to match exactly the one in the task description
0
if temp >= 100:
you just miss the :
- 1
Lisa
temp = int(input())
if temp >= 100
print ("boiling")