try:
# Your code goes here
except ZeroDivisionError:
print("Cannot divide by zero")
except TypeError:
print("Unsupported operation type")
except ValueError:
print("Invalid input value")
except Exception as e:
print(f"An error occurred: {e}")except` blocks that handle different types of exceptions :ZeroDivisionError`: This block is executed when a division by zero occurs.TypeError`: This block is executed when an unsupported operation type is used.ValueError`: This block is executed when an invalid input value is used.Exception`: This block is executed when any other type of exception occurs that is not handled by the other `except` blocks.except` blocks as you need to handle different types of exceptions. The `Exception` block is a catch-all block that will handle any type of exception that is not handled by the other blocks.