try and if statement python code example
Example: python try else
try:
a=2*3
except TypeError:
print("Exception raised")
else:
print("Everything is ok.")
try:
a=2*3
except TypeError:
print("Exception raised")
else:
print("Everything is ok.")