+ 1
Python
Write a program that checks if the water is boiling. Take the integer temperature in Celsius as input and output "Boiling" if the temperature is above or equal to 100. Sample Input 105 Sample Output Boiling
8 Answers
+ 5
sololearn check if the output is correct. if we write something as prompt, this will be printed as well...
+ 2
only take input. do not write any prompt in input()
+ 1
What is your question? What have you tried?
+ 1
code ,# Taking input from the user
temp = int(input("Enter the temperature in Celsius: "))
# Checking if the water is boiling
if temp >= 100:
print("Boiling")
0
Thanks đ©
0
But why do I need to remove the prompt in the input before the code worked ?
0
Oh okay thanks
0
The mistake is inputing the prompt message âenter the temperature in celsiusâ Sololearn doesnt take it