+ 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 Respuestas
+ 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