Oct-19-2021, 04:08 AM
(This post was last modified: Oct-20-2021, 05:22 AM by Yoriz.
Edit Reason: Added code tags
)
Hello community, again, i am struggling with something very basic. Ane help is greatly appreciated. TIA
x = input("Enter a number between 1 & 5: ") if x > 0 and x < 6: print("You have entered " + (str(x)) + "!") else: print("You entered the wrong number!")
Error:TypeError: '>' not supported between instances of 'str' and 'int'
Seems to be something common as i have found millions of results when googling it but unfortunately not the solution