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.

12th Oct 2022, 5:20 PM
Celia Sarkisian
23 Réponses
+ 15
Celia Sarkisian , first we need to see what you have done so far to solve the task. please link your code here.
12th Oct 2022, 6:17 PM
Lothar
Lothar - avatar
+ 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.*
13th Oct 2022, 10:40 AM
Lothar
Lothar - avatar
+ 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")
12th Oct 2022, 7:48 PM
Lothar
Lothar - avatar
+ 5
Celia Sarkisian , your link is not showing your code. please copy paste it here.
12th Oct 2022, 7:15 PM
Lothar
Lothar - avatar
+ 2
Thank you so much for your help it means a lot!
12th Oct 2022, 8:03 PM
Celia Sarkisian
+ 2
Now I got it thank you ☺️ Lothar
13th Oct 2022, 11:07 AM
Riya
Riya - avatar
+ 1
I feel like it’s a bug from the sololearn
12th Oct 2022, 7:52 PM
Celia Sarkisian
14th Oct 2022, 11:53 AM
Abhishek Shahi
Abhishek Shahi - avatar
+ 1
temp = int((input(#enter 100)) if temp >= 100: #indent print("Boiling")
14th Oct 2022, 3:39 PM
Moses Stan
Moses Stan - avatar
12th Oct 2022, 7:04 PM
Celia Sarkisian
0
temp=int(input(100)) if temp >= 100: print("Boiling")
12th Oct 2022, 7:17 PM
Celia Sarkisian
0
I did it in both ways and still incorrect
12th Oct 2022, 7:17 PM
Celia Sarkisian
0
temp=int(input(100)) if temp >= int("100"): print("Boiling")
12th Oct 2022, 7:23 PM
Celia Sarkisian
0
Did it
12th Oct 2022, 7:52 PM
Celia Sarkisian
0
Still doesnt work
12th Oct 2022, 7:52 PM
Celia Sarkisian
0
Yea it was a bug now it is fixed
12th Oct 2022, 8:03 PM
Celia Sarkisian
0
Is temp=int(input(100)),a valid statement...?or int(input())->a valid one
13th Oct 2022, 7:10 AM
Riya
Riya - avatar
0
You guys are making a mistake
13th Oct 2022, 9:09 AM
Abdul Salam
Abdul Salam - avatar
13th Oct 2022, 9:09 AM
Abdul Salam
Abdul Salam - avatar
0
Any one from Nigeria 🇳🇬
13th Oct 2022, 10:29 PM
Ogunleye Taiwo Ayodeji