Answer:
Because guess is not converted to int
Step-by-step explanation:
try adding line "guess = int(guess)" between lines "if guess.isdigit():" and "print("That's Correct!")"
This is because input() returns data of type string. Arithmetic operations cannot be performed between different types. Just replace the first line with this and your problem will be solved.
1.6m questions
2.0m answers