python handle exception in calling function 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.")