I get the error code:
TypeError: '>' not supported between instances of 'str' and 'int' in its current state.
The problem is that I don't know how to convert user input expectations to integer from string format.
number = input ("Please guess what number I'm thinking of. HINT: it's between 1 and 30")
I've looked up how to do it but I couldn't find what I was looking for because I'm not sure how to word my question properly.
I've tried putting "int
" after number
and after input
but it doesn't work. Not sure where to put it to get it to work.