For instance in this program I have used try
and except
to attempt to validate it, but it doesn't work; any ideas? I want to make sure the input is not a string.
userGuess = int(input("%s %s %s = ?\n" % (num1, op, num2)))
try:
validation = int(userGuess)
except ValueError:
print("You have not entered a number!")