what to do when exception is caught in python code example
Example: try except python
def sum_of(x, y):
try:
print(x + y)
except TypeError:
print("Invalid argument specified.")
def sum_of(x, y):
try:
print(x + y)
except TypeError:
print("Invalid argument specified.")