def divide(a, b): try: return a / b except ZeroDivisionError: print("error") return 0 except Exception as e: print("other error") return 0 finally: print("done")