Catch different types of exceptions using multiple except blocks.
Source Code
try:
# risky operation
except TypeError as e:
print("Type error:", e)
except ValueError as e:
print("Value error:", e)
except Exception as e:
print("Other errors:", e)