0

Can somebody help me?

It's my code: temperature = input("What is the temperature?") if temperature > 50: print('It is too hot!') if temperature < 50: print('It is too cold.') print(temperature) When i start it there's a error: '>' not supported between instances of 'str' and 'int' Can somebody help me with this?

10th Mar 2020, 6:02 PM
Kokosek_PL
4 Answers
0
thanks, it works,but i have another question: how can i loop it?
10th Mar 2020, 6:12 PM
Kokosek_PL