0
Can someone help me with this question please?
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.
23 Answers
+ 15
Celia Sarkisian ,
first we need to see what you have done so far to solve the task. please link your code here.
+ 9
Riya ,
both versions are valid.
> temp=int(input(100)) # this one will show *100* as a user prompt for input. but it is confusing when user will see 100. it will NOT assign the number *100* to the variable *temp*, user has still to input a number.
int(input()) # this one will output no user prompt, and it will not store an input in a variable. so it makes no sence, although it is valid.
temp = int(input()) will store the user input in variable *temp.*
+ 8
Celia Sarkisian ,
this the code from you that you should use:
temp=int(input(100)) # do not put anything inside the input function
if temp >= 100: # make sure that indentation is correct
print("Boiling")
+ 5
Celia Sarkisian ,
your link is not showing your code. please copy paste it here.
+ 2
Thank you so much for your help it means a lot!
+ 2
Now I got it thank you ☺️ Lothar
+ 1
I feel like it’s a bug from the sololearn
+ 1
temp = int((input(#enter 100))
if temp >= 100:
#indent print("Boiling")
0
temp=int(input(100))
if temp >= 100:
print("Boiling")
0
I did it in both ways and still incorrect
0
temp=int(input(100))
if temp >= int("100"):
print("Boiling")
0
Did it
0
Still doesnt work
0
Yea it was a bug now it is fixed
0
Is temp=int(input(100)),a valid statement...?or
int(input())->a valid one
0
You guys are making a mistake
0
Any one from Nigeria 🇳🇬