I'm practicing exception handling and when I try to execute the following code, python doesn't handle the TypeError exception if i enter a text instead of number. Following is the code :
num1=input("Enter the first number : ")
num2=input("Enter the second number : ")
try:
num1=int(num1)
num2=int(num2)
except TypeError:
print("Sorry, that wasn't a number, please try again")
else:
print(add)
ValueError, not aTypeError