0
Can anyone find what’s wrong with the codes below?thank you
I hope it can help check the number inputed , but seems like something wrong with it. Can anyone help check that?thank you num = input('wirte down the number you need') if num > '5': print("Bigger than 5") if num <='47': print("Between 5 and 47")
2 Respuestas
+ 4
Convert input to int.
num = int(input())
and then compare num with integer values instead of strings.
if num > 5:
#...
+ 1
ay,that’s it! thank you!