try catch in python 2.7 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.")