how to uyse if statement for try 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.")