0

What should i do if i want to output nothing if water is not boiling?

temp = int(input(105)) if temp >= 100: print("Boiling") if temp < 100: print(" ")

15th Oct 2021, 3:39 AM
Tareq Elgezawy
Tareq Elgezawy - avatar
5 Respuestas
+ 2
I guess you can remove the last 2 lines if you want nothing to be outputted if it's not boiling
15th Oct 2021, 3:41 AM
Tim
Tim - avatar
+ 1
Tareq Elgezawy Did you read this notes: "Do not output anything if the water is not boiling." You don't have to print anything if temp is less than 100 and why did you pass 105
15th Oct 2021, 3:45 AM
A͢J
A͢J - avatar
0
I did that but also not working
15th Oct 2021, 3:41 AM
Tareq Elgezawy
Tareq Elgezawy - avatar
0
Which exercise is that?
15th Oct 2021, 3:42 AM
Tim
Tim - avatar
0
If statement
15th Oct 2021, 3:42 AM
Tareq Elgezawy
Tareq Elgezawy - avatar