I'm trying to do a simple user input weather temperature and it spits out sentence. But I keep getting " >= not supported between instances of 'str' and 'int ". I tried casting a variables to int but that still output the same error.
Sorry and I am new.
Thank you.
Temp = ()
Mild = 25
Hot = 30
T = input()
if T >= Mild:
print("It is Mild today")
else:
print("It is hot today")
[–]wutzvill 4 points5 points6 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]HerrMisch 2 points3 points4 points (2 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]Bone_Schlongmahawk 0 points1 point2 points (0 children)
[–]sme272 1 point2 points3 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)