when is else executed in try catch else 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.")