I’m working on a personal project and I’m getting user from input that should be and int.
problem is like this:
say I get an input from a user using this code:
guess=int(input('what is your guess?:'))
and the user inserts a letter just to be annoying
I’m gonna be getting a syntax error cause the program can’t change the letter to an integer
but if I do this
guess=input('what is your guess?:')
without the int() command all input I get will be treated as a string and not as an int like I want it to
what do I do now?