I wasn’t quite sure how to phrase it in the title, but here is a better explanation:
var = float(input(‘guess the number: ’))
if var != 100:
print(run the program again and guess again!)
In the input statement, I put float because the user is guessing a number. I can take that away, but then I can’t compare that to 100 because the user input would be a string (I get an error).
Is there a way for the user to input a number and string, but if its a string it will just say: ‘Incorrect, try again’ or something like that?