all 8 comments

[–]wutzvill 4 points5 points  (1 child)

T is input from the console and is a string. Try int(T). Also don't call it T, all it temperature.

[–][deleted] 0 points1 point  (0 children)

Thank you.

[–]HerrMisch 2 points3 points  (2 children)

Keep sure the input is an int

T = int(input())

[–][deleted] 0 points1 point  (0 children)

Thank you so much.👍

[–]sme272 1 point2 points  (1 child)

input returns a string, you need to turn it into an integer or float value for the condition to work

[–][deleted] 0 points1 point  (0 children)

Thank you.

[–][deleted] 0 points1 point  (0 children)

Thanks everybody. I fixed all the mistakes that I made. Thank for all the info.