[Solved] Divide by zero error input into Tkinter message for a calculator


Add ZeroDivisionError to the list of your exceptions:

except (SyntaxError, NameError, ZeroDivisionError):

1

solved Divide by zero error input into Tkinter message for a calculator