python try syntax 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.")