Taschenrechner mit Tkinter

Hallo,
mein Taschenrechner(mit Tkinter) funktioniert nicht(wegen der Zahleneingabe mit Entry), und ich weiß nicht wie ich dies lösen kann. Könnte mir jemand helfen?
Danke im Voraus

Mein Programm:


from tkinter import *
import tkinter.ttk as ttk

root=Tk()
root.title("Taschenrechner")
root.geometry("4000x3000")
textlabel1 = Label(root, text="", font="Segoe 30")
textlabel1.place(x=580, y=30)
textlabel1.config(text="Taschenrechner")
textlabel2 = Label(root, text="", font="Segoe 30")
textlabel2.place(x=70, y=100)
textlabel2.config(text="Zahl 1:")
textlabel3 = Label(root, text="", font="Segoe 30")
textlabel3.place(x=70, y=200)
textlabel3.config(text="Zahl 2:")
textlabel4 = Label(root, text="", font="Segoe 30")
textlabel4.place(x=70, y=300)
textlabel4.config(text="Zahl 3:")
textlabel5 = Label(root, text="", font="Segoe 30")
textlabel5.place(x=70, y=400)
textlabel5.config(text="Zahl 4:")
textlabel6 = Label(root, text="", font="Segoe 30")
textlabel6.place(x=70, y=500)
textlabel6.config(text="Zahl 5:")
textlabel7 = Label(root, text="", font="Segoe 30")
textlabel7.place(x=70, y=600)
textlabel7.config(text="Ergebnis:")
entry1 = Entry(master=root, font="Segoe 20", bg="white")
entry1.place(x=200, y=100, width=600, height=40)
entry2 = Entry(master=root, font="Segoe 20", bg="white")
entry2.place(x=200, y=200, width=600, height=40)
entry3 = Entry(master=root, font="Segoe 20", bg="white")
entry3.place(x=200, y=300, width=600, height=40)
entry4 = Entry(master=root, font="Segoe 20", bg="white")
entry4.place(x=200, y=400, width=600, height=40)
entry5 = Entry(master=root, font="Segoe 20", bg="white")
entry5.place(x=200, y=500, width=600, height=40)
entry6 = Entry(master=root, font="Segoe 20", bg="white")
entry6.place(x=200, y=150, width=600, height=40)
entry7 = Entry(master=root, font="Segoe 20", bg="white")
entry7.place(x=200, y=250, width=600, height=40)
entry8 = Entry(master=root, font="Segoe 20", bg="white")
entry8.place(x=200, y=350, width=600, height=40)
entry9 = Entry(master=root, font="Segoe 20", bg="white")
entry9.place(x=200, y=450, width=600, height=40)

x=str(entry6.get())
z=str(entry7.get())
b=str(entry8.get())
n=str(entry9.get())

Zahl1 = float(entry1.get())
Zahl2 = float(entry2.get())
if not(z=="="):  
    Zahl3 = float(entry3.get())
if not(z=="=" and b=="="):
    Zahl4 = float(entry4.get())
if not(z=="=" and b=="=" and n=="="):
    Zahl5 = float(entry5.get())
        
if x == "+"and z == "=":
    Ergebnis=Zahl1+Zahl2
elif x == "-"and z == "=":
    Ergebnis=Zahl1-Zahl2
elif x == "x"and z == "=":
    Ergebnis=Zahl1*Zahl2
elif x == ":" and z == "=":
    try:
       Ergebnis=Zahl1/Zahl2
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == "+"and x == "+"and b == "=":
    Ergebnis=Zahl1+Zahl2+Zahl3
elif z == "-"and x == "-"and b == "=":
    Ergebnis=Zahl1-Zahl2-Zahl3
elif z == "x"and x == "x"and b == "=":
    Ergebnis=Zahl1*Zahl2*Zahl3
elif z == "+"and x == "-"and b == "=":
    Ergebnis=Zahl1-Zahl2+Zahl3
elif z == "-"and x == "+"and b == "=":
    Ergebnis=Zahl1+Zahl2-Zahl3
elif z == "+"and x == "x"and b == "=":
    Ergebnis=(Zahl1*Zahl2)+Zahl3
elif z == "x"and x == "+"and b == "=":
    Ergebnis=(Zahl2*Zahl3)+Zahl1
elif z == "-"and x == "x"and b == "=":
    Ergebnis=(Zahl1*Zahl2)-Zahl3
elif z == "x"and x == "-"and b == "=":
    Ergebnis=Zahl1-(Zahl2*Zahl3)
elif z == "x"and x == ":"and b == "=":
    try:
        Ergebnis=(Zahl1/Zahl2)*Zahl3
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif x == ":" and z == ":"and b == "=":
    try:
        Ergebnis=(Zahl1/Zahl2)/Zahl3
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == ":"and x == "x"and b == "=":
    try:
        Ergebnis=(Zahl1*Zahl2)/Zahl3
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == "+"and x == ":"and b == "=":
    try:
        Ergebnis=(Zahl1/Zahl2)+Zahl3
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == ":"and x == "+"and b == "=":
    try:
        Ergebnis=(Zahl2/Zahl3)+Zahl1
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == "-"and x == ":"and b == "=":
    try:
        Ergebnis=(Zahl1/Zahl2)-Zahl3
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == ":"and x == "-"and b == "=":
    try:
        Ergebnis=Zahl1-(Zahl2/Zahl3)
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"

elif z == "+"and x == "+"and b == "+"and n=="=":
    Ergebnis=Zahl1+Zahl2+Zahl3+Zahl4
elif z == "+"and x == "+"and b == "-"and n=="=":
    Ergebnis=Zahl1+Zahl2+Zahl3-Zahl4
elif z == "+"and x == "+"and b == ":"and n=="=":
    try:
        Ergebnis=Zahl1+Zahl2+(Zahl3/Zahl4)
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == "+"and x == "+"and b == "x"and n=="=":
    Ergebnis=Zahl1+Zahl2+(Zahl3*Zahl4)
elif z == "-"and x == "+"and b == "+"and n=="=":
    Ergebnis=Zahl1+Zahl2-Zahl3+Zahl4
elif z == "-"and x == "+"and b == "-"and n=="=":
    Ergebnis=Zahl1+Zahl2-Zahl3-Zahl4
elif z == "-"and x == "+"and b == "x"and n=="=":
    Ergebnis=Zahl1+Zahl2-(Zahl3*Zahl4)
elif z == "-"and x == "+"and b == ":"and n=="=":
    try:
        Ergebnis=Zahl1+Zahl2-(Zahl3/Zahl4)
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == ":"and x == "+"and b == "+"and n=="=":
    try:
        Ergebnis=Zahl1+(Zahl2/Zahl3)+Zahl4
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == ":"and x == "+"and b == "-"and n=="=":
    try:
        Ergebnis=Zahl1+(Zahl2/Zahl3)-Zahl4
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == ":"and x == "+"and b == "x"and n=="=":
    try:
        Ergebnis=Zahl1+((Zahl2/Zahl3)*Zahl4)
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == ":"and x == "+"and b == ":"and n=="=":
    try:
        Ergebnis=Zahl1+((Zahl2/Zahl3)/Zahl4)
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == "x"and x == "+"and b == "+"and n=="=":
    Ergebnis=Zahl1+(Zahl2*Zahl3)+Zahl4
elif z == "x"and x == "+"and b == "-"and n=="=":
    Ergebnis=Zahl1+(Zahl2*Zahl3)-Zahl4
elif z == "x"and x == "+"and b == ":"and n=="=":
    try:
        Ergebnis=Zahl1+((Zahl2*Zahl3)/Zahl4)
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == "x"and x == "+"and b == "x"and n=="=":
    Ergebnis=Zahl1+((Zahl2*Zahl3)*Zahl4)

elif z == "+"and x == "x"and b == "+"and n=="=":
    Ergebnis=(Zahl1*Zahl2)+Zahl3+Zahl4
elif z == "+"and x == "x"and b == "-"and n=="=":
    Ergebnis=(Zahl1*Zahl2)+Zahl3-Zahl4
elif z == "+"and x == "x"and b == ":"and n=="=":
    try:
        Ergebnis=((Zahl1*Zahl2)+(Zahl3/Zahl4))
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == "+"and x == "x"and b == "x"and n=="=":
    Ergebnis=(Zahl1*Zahl2)+(Zahl3*Zahl4)
elif z == "-"and x == "x"and b == "+"and n=="=":
    Ergebnis=(Zahl1*Zahl2)-Zahl3+Zahl4
elif z == "-"and x == "x"and b == "-"and n=="=":
    Ergebnis=(Zahl1*Zahl2)-Zahl3-Zahl4
elif z == "-"and x == "x"and b == "x"and n=="=":
    Ergebnis=(Zahl*Zahl2)-(Zahl3*Zahl4)
elif z == "-"and x == "x"and b == ":"and n=="=":
    try:
        Ergebnis=(Zahl1*Zahl2)-(Zahl3/Zahl4)
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == ":"and x == "x"and b == "+"and n=="=":
    try:
        Ergebnis=(Zahl1*(Zahl2)/Zahl3)+Zahl4
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == ":"and x == "x"and b == "-"and n=="=":
    try:
        Ergebnis=(Zahl1*(Zahl2)/Zahl3)-Zahl4
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == ":"and x == "x"and b == "x"and n=="=":
    try:
        Ergebnis=((Zahl1*Zahl2)/Zahl3)*Zahl4
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == ":"and x == "x"and b == ":"and n=="=":
    try:
        Ergebnis=((Zahl1*Zahl2)/Zahl3)/Zahl4
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == "x"and x == "x"and b == "+"and n=="=":
    Ergebnis=((Zahl1*Zahl2)*Zahl3)+Zahl4
elif z == "x"and x == "x"and b == "-"and n=="=":
    Ergebnis=((Zahl1*Zahl2)*Zahl3)-Zahl4
elif z == "x"and x == "x"and b == ":"and n=="=":
    try:
        Ergebnis=((Zahl1*Zahl2)*Zahl3)/Zahl4
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == "x"and x == "x"and b == "x"and n=="=":
    Ergebnis=((Zahl1*Zahl2)*Zahl3)*Zahl4
    
elif z == "+"and x == ":"and b == "+"and n=="=":
    try:
        Ergebnis=(Zahl1/Zahl2)+Zahl3+Zahl4
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == "+"and x == ":"and b == "-"and n=="=":
    try:
        Ergebnis=(Zahl1/Zahl2)+Zahl3-Zahl4
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == "+"and x == ":"and b == ":"and n=="=":
    try:
        Ergebnis=(Zahl1/Zahl2)+(Zahl3/Zahl4)
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == "+"and x == ":"and b == "x"and n=="=":
    try:
        Ergebnis=(Zahl1/Zahl2)+(Zahl3*Zahl4)
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == "-"and x == ":"and b == "+"and n=="=":
    try:
        Ergebnis=(Zahl1/Zahl2)-Zahl3+Zahl4
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == "-"and x == ":"and b == "-"and n=="=":
    try:
        Ergebnis=(Zahl1/Zahl2)-Zahl3-Zahl4
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == "-"and x == ":"and b == "x"and n=="=":
    try:
        Ergebnis=(Zahl1/Zahl2)-(Zahl3*Zahl4)
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == "-"and x == ":"and b == ":"and n=="=":
    try:
        Ergebnis=(Zahl1/Zahl2)-(Zahl3/Zahl4)
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == ":"and x == ":"and b == "+"and n=="=":
    try:
        Ergebnis=(Zahl/(Zahl2)/Zahl3)+Zahl4
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == ":"and x == ":"and b == "-"and n=="=":
    try:
        Ergebnis=(Zahl1/(Zahl2)/Zahl3)-Zahl4
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == ":"and x == ":"and b == ":"and n=="=":
    try:
        Ergebnis=(Zahl1/(Zahl2)/Zahl3)/Zahl4
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == ":"and x == ":"and b == "x"and n=="=":
    try:
        Ergebnis=((Zahl1/Zahl2)/Zahl3)*Zahl4
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == "x"and x == ":"and b == "+"and n=="=":
    try:
        Ergebnis=((Zahl1/Zahl2)*Zahl3)+Zahl4
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == "x"and x == ":"and b == "-"and n=="=":
    try:
        Ergebnis=((Zahl1/Zahl2)*Zahl3)-Zahl4
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == "x"and x == ":"and b == ":"and n=="=":
    try:
        Ergebnis=((Zahl1/Zahl2)*Zahl3)/Zahl4
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == "x"and x == ":"and b == "x"and n=="=":
    try:
        Ergebnis=((Zahl1/Zahl2)*Zahl3)*Zahl4
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
    
elif z == "+"and x == "-"and b == "+"and n=="=":
    Ergebnis=Zahl1-Zahl2+Zahl3+Zahl4
elif z == "+"and x == "-"and b == "-"and n=="=":
    Ergebnis=Zahl1-Zahl2+Zahl3-Zahl4
elif z == "+"and x == "-"and b == ":"and n=="=":
    try:
        Ergebnis=Zahl1-Zahl2+(Zahl3/Zahl4)
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == "+"and x == "-"and b == "x"and n=="=":
    Ergebnis=Zahl1-Zahl2+(Zahl3*Zahl4)
elif z == "-"and x == "-"and b == "+"and n=="=":
    Ergebnis=Zahl1-Zahl2-Zahl3+Zahl4
elif z == "-"and x == "-"and b == "-"and n=="=":
    Ergebnis=Zahl1-Zahl2-Zahl3-Zahl4
elif z == "-"and x == "-"and b == "x"and n=="=":
    Ergebnis=Zahl1-Zahl2-(Zahl3*Zahl4)
elif z == "-"and x == "-"and b == ":"and n=="=":
    try:
        Ergebnis=Zahl1-Zahl2-(Zahl3/Zahl4)
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == ":"and x == "-"and b == "+"and n=="=":
    try:
        Ergebnis=Zahl1-(Zahl2/Zahl3)+Zahl4
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == ":"and x == "-"and b == "-"and n=="=":
    try:
        Ergebnis=Zahl1-(Zahl2/Zahl3)-Zahl4
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == ":"and x == "-"and b == "x"and n=="=":
    try:
        Ergebnis=Zahl1-((Zahl2/Zahl3)*Zahl4)
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == ":"and x == "-"and b == ":"and n=="=":
    try:
        Ergebnis=Zahl1-((Zahl2/Zahl3)/Zahl4)
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == "x"and x == "-"and b == "+"and n=="=":
    Ergebnis=Zahl1-(Zahl2*Zahl3)+Zahl4
elif z == "x"and x == "-"and b == "-"and n=="=":
    Ergebnis=Zahl1-(Zahl2*Zahl3)-Zahl4
elif z == "x"and x == "-"and b == ":"and n=="=":
    try:
        Ergebnis=Zahl1-((Zahl2*Zahl3)/Zahl4)
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == "x"and x == "-"and b == "x"and n=="=":
    Ergebnis=Zahl1-((Zahl2*Zahl3)*Zahl4)


elif z == "+"and x == "+"and b == "+"and n=="+":
    Ergebnis=Zahl1+Zahl2+Zahl3+Zahl4+Zahl5
elif z == "+"and x == "+"and b == "-"and n=="+":
    Ergebnis=Zahl1+Zahl2+Zahl3-Zahl4+Zahl5
elif z == "+"and x == "+"and b == ":"and n=="+":
    try:
        Ergebnis=Zahl1+Zahl2+(Zahl3/Zahl4)+Zahl5
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == "+"and x == "+"and b == "x"and n=="+":
    Ergebnis=Zahl1+Zahl2+(Zahl3*Zahl4)+Zahl5
elif z == "-"and x == "+"and b == "+"and n=="+":
    Ergebnis=Zahl1+Zahl2-Zahl3+Zahl4+Zahl5
elif z == "-"and x == "+"and b == "-"and n=="+":
    Ergebnis=Zahl1+Zahl2-Zahl3-Zahl4+Zahl5
elif z == "-"and x == "+"and b == "x"and n=="+":
    Ergebnis=Zahl1+Zahl2-(Zahl3*Zahl4)+Zahl5
elif z == "-"and x == "+"and b == ":"and n=="+":
    try:
        Ergebnis=Zahl1+Zahl2-(Zahl3/Zahl4)+Zahl5
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == ":"and x == "+"and b == "+"and n=="+":
    try:
        Ergebnis=Zahl1+(Zahl2/Zahl3)+Zahl4+Zahl5
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == ":"and x == "+"and b == "-"and n=="+":
    try:
        Ergebnis=Zahl1+(Zahl2/Zahl3)-Zahl4+Zahl5
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == ":"and x == "+"and b == "x"and n=="+":
    try:
        Ergebnis=Zahl1+((Zahl2/Zahl3)*Zahl4)+Zahl5
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == ":"and x == "+"and b == ":"and n=="+":
    try:
        Ergebnis=Zahl1+((Zahl2/Zahl3)/Zahl4)+Zahl5
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == "x"and x == "+"and b == "+"and n=="+":
    Ergebnis=Zahl1+(Zahl2*Zahl3)+Zahl4+Zahl5
elif z == "x"and x == "+"and b == "-"and n=="+":
    Ergebnis=Zahl1+(Zahl2*Zahl3)-Zahl4+Zahl5
elif z == "x"and x == "+"and b == ":"and n=="+":
    try:
        Ergebnis=Zahl1+((Zahl2*Zahl3)/Zahl4)+Zahl5
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == "x"and x == "+"and b == "x"and n=="+":
    Ergebnis=Zahl1+((Zahl2*Zahl3)*Zahl4)+Zahl5

elif z == "+"and x == "x"and b == "+"and n=="+":
    Ergebnis=(Zahl1*Zahl2)+Zahl3+Zahl4+Zahl5
elif z == "+"and x == "x"and b == "-"and n=="+":
    Ergebnis=(Zahl1*Zahl2)+Zahl3-Zahl4+Zahl5
elif z == "+"and x == "x"and b == ":"and n=="+":
    try:
        Ergebnis=((Zahl1*Zahl2)+(Zahl3/Zahl4))+Zahl5
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == "+"and x == "x"and b == "x"and n=="+":
    Ergebnis=(Zahl1*Zahl2)+(Zahl3*Zahl4)+Zahl5
elif z == "-"and x == "x"and b == "+"and n=="+":
    Ergebnis=(Zahl1*Zahl2)-Zahl3+Zahl4+Zahl5
elif z == "-"and x == "x"and b == "-"and n=="+":
    Ergebnis=(Zahl1*Zahl2)-Zahl3-Zahl4+Zahl5
elif z == "-"and x == "x"and b == "x"and n=="+":
    Ergebnis=(Zahl*Zahl2)-(Zahl3*Zahl4)+Zahl5
elif z == "-"and x == "x"and b == ":"and n=="+":
    try:
        Ergebnis=(Zahl1*Zahl2)-(Zahl3/Zahl4)+Zahl5
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == ":"and x == "x"and b == "+"and n=="+":
    try:
        Ergebnis=(Zahl1*(Zahl2)/Zahl3)+Zahl4+Zahl5
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == ":"and x == "x"and b == "-"and n=="+":
    try:
        Ergebnis=(Zahl1*(Zahl2)/Zahl3)-Zahl4+Zahl5
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == ":"and x == "x"and b == "x"and n=="+":
    try:
        Ergebnis=((Zahl1*Zahl2)/Zahl3)*Zahl4+Zahl5
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == ":"and x == "x"and b == ":"and n=="+":
    try:
        Ergebnis=((Zahl1*Zahl2)/Zahl3)/Zahl4+Zahl5
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == "x"and x == "x"and b == "+"and n=="+":
    Ergebnis=((Zahl1*Zahl2)*Zahl3)+Zahl4+Zahl5
elif z == "x"and x == "x"and b == "-"and n=="+":
    Ergebnis=((Zahl1*Zahl2)*Zahl3)-Zahl4+Zahl5
elif z == "x"and x == "x"and b == ":"and n=="+":
    try:
        Ergebnis=((Zahl1*Zahl2)*Zahl3)/Zahl4+Zahl5
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == "x"and x == "x"and b == "x"and n=="+":
    Ergebnis=((Zahl1*Zahl2)*Zahl3)*Zahl4+Zahl5
    
elif z == "+"and x == ":"and b == "+"and n=="+":
    try:
        Ergebnis=(Zahl1/Zahl2)+Zahl3+Zahl4+Zahl5
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == "+"and x == ":"and b == "-"and n=="+":
    try:
        Ergebnis=(Zahl1/Zahl2)+Zahl3-Zahl4+Zahl5
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == "+"and x == ":"and b == ":"and n=="+":
    try:
        Ergebnis=(Zahl1/Zahl2)+(Zahl3/Zahl4)+Zahl5
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == "+"and x == ":"and b == "x"and n=="+":
    try:
        Ergebnis=(Zahl1/Zahl2)+(Zahl3*Zahl4)+Zahl5
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == "-"and x == ":"and b == "+"and n=="+":
    try:
        Ergebnis=(Zahl1/Zahl2)-Zahl3+Zahl4+Zahl5
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == "-"and x == ":"and b == "-"and n=="+":
    try:
        Ergebnis=(Zahl1/Zahl2)-Zahl3-Zahl4+Zahl5
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == "-"and x == ":"and b == "x"and n=="+":
    try:
        Ergebnis=(Zahl1/Zahl2)-(Zahl3*Zahl4)+Zahl5
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == "-"and x == ":"and b == ":"and n=="+":
    try:
        Ergebnis=(Zahl1/Zahl2)-(Zahl3/Zahl4)+Zahl5
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == ":"and x == ":"and b == "+"and n=="+":
    try:
        Ergebnis=(Zahl/(Zahl2)/Zahl3)+Zahl4+Zahl5
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == ":"and x == ":"and b == "-"and n=="+":
    try:
        Ergebnis=(Zahl1/(Zahl2)/Zahl3)-Zahl4+Zahl5
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == ":"and x == ":"and b == ":"and n=="+":
    try:
        Ergebnis=(Zahl1/(Zahl2)/Zahl3)/Zahl4+Zahl5
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == ":"and x == ":"and b == "x"and n=="+":
    try:
        Ergebnis=((Zahl1/Zahl2)/Zahl3)*Zahl4+Zahl5
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == "x"and x == ":"and b == "+"and n=="+":
    try:
        Ergebnis=((Zahl1/Zahl2)*Zahl3)+Zahl4+Zahl5
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == "x"and x == ":"and b == "-"and n=="+":
    try:
        Ergebnis=((Zahl1/Zahl2)*Zahl3)-Zahl4+Zahl5
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == "x"and x == ":"and b == ":"and n=="+":
    try:
        Ergebnis=((Zahl1/Zahl2)*Zahl3)/Zahl4+Zahl5
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == "x"and x == ":"and b == "x"and n=="+":
    try:
        Ergebnis=((Zahl1/Zahl2)*Zahl3)*Zahl4+Zahl5
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
    
elif z == "+"and x == "-"and b == "+"and n=="+":
    Ergebnis=Zahl1-Zahl2+Zahl3+Zahl4+Zahl5
elif z == "+"and x == "-"and b == "-"and n=="+":
    Ergebnis=Zahl1-Zahl2+Zahl3-Zahl4+Zahl5
elif z == "+"and x == "-"and b == ":"and n=="+":
    try:
        Ergebnis=Zahl1-Zahl2+(Zahl3/Zahl4)+Zahl5
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == "+"and x == "-"and b == "x"and n=="+":
    Ergebnis=Zahl1-Zahl2+(Zahl3*Zahl4)+Zahl5
elif z == "-"and x == "-"and b == "+"and n=="+":
    Ergebnis=Zahl1-Zahl2-Zahl3+Zahl4+Zahl5
elif z == "-"and x == "-"and b == "-"and n=="+":
    Ergebnis=Zahl1-Zahl2-Zahl3-Zahl4+Zahl5
elif z == "-"and x == "-"and b == "x"and n=="+":
    Ergebnis=Zahl1-Zahl2-(Zahl3*Zahl4)+Zahl5
elif z == "-"and x == "-"and b == ":"and n=="+":
    try:
        Ergebnis=Zahl1-Zahl2-(Zahl3/Zahl4)+Zahl5
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == ":"and x == "-"and b == "+"and n=="+":
    try:
        Ergebnis=Zahl1-(Zahl2/Zahl3)+Zahl4+Zahl5
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == ":"and x == "-"and b == "-"and n=="+":
    try:
        Ergebnis=Zahl1-(Zahl2/Zahl3)-Zahl4+Zahl5
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == ":"and x == "-"and b == "x"and n=="+":
    try:
        Ergebnis=Zahl1-((Zahl2/Zahl3)*Zahl4)+Zahl5
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == ":"and x == "-"and b == ":"and n=="+":
    try:
        Ergebnis=Zahl1-((Zahl2/Zahl3)/Zahl4)+Zahl5
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == "x"and x == "-"and b == "+"and n=="+":
    Ergebnis=Zahl1-(Zahl2*Zahl3)+Zahl4+Zahl5
elif z == "x"and x == "-"and b == "-"and n=="+":
    Ergebnis=Zahl1-(Zahl2*Zahl3)-Zahl4+Zahl5
elif z == "x"and x == "-"and b == ":"and n=="+":
    try:
        Ergebnis=Zahl1-((Zahl2*Zahl3)/Zahl4)+Zahl5
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == "x"and x == "-"and b == "x"and n=="+":
    Ergebnis=Zahl1-((Zahl2*Zahl3)*Zahl4)+Zahl5


elif z == "+"and x == "+"and b == "+"and n=="-":
    Ergebnis=Zahl1+Zahl2+Zahl3+Zahl4-Zahl5
elif z == "+"and x == "+"and b == "-"and n=="-":
    Ergebnis=Zahl1+Zahl2+Zahl3-Zahl4-Zahl5
elif z == "+"and x == "+"and b == ":"and n=="-":
    try:
        Ergebnis=Zahl1+Zahl2+(Zahl3/Zahl4)-Zahl5
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == "+"and x == "+"and b == "x"and n=="-":
    Ergebnis=Zahl1+Zahl2+(Zahl3*Zahl4)-Zahl5
elif z == "-"and x == "+"and b == "+"and n=="-":
    Ergebnis=Zahl1+Zahl2-Zahl3+Zahl4-Zahl5
elif z == "-"and x == "+"and b == "-"and n=="-":
    Ergebnis=Zahl1+Zahl2-Zahl3-Zahl4-Zahl5
elif z == "-"and x == "+"and b == "x"and n=="-":
    Ergebnis=Zahl1+Zahl2-(Zahl3*Zahl4)-Zahl5
elif z == "-"and x == "+"and b == ":"and n=="-":
    try:
        Ergebnis=Zahl1+Zahl2-(Zahl3/Zahl4)-Zahl5
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == ":"and x == "+"and b == "+"and n=="-":
    try:
        Ergebnis=Zahl1+(Zahl2/Zahl3)+Zahl4-Zahl5
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == ":"and x == "+"and b == "-"and n=="-":
    try:
        Ergebnis=Zahl1+(Zahl2/Zahl3)-Zahl4-Zahl5
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == ":"and x == "+"and b == "x"and n=="-":
    try:
        Ergebnis=Zahl1+((Zahl2/Zahl3)*Zahl4)-Zahl5
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == ":"and x == "+"and b == ":"and n=="-":
    try:
        Ergebnis=Zahl1+((Zahl2/Zahl3)/Zahl4)-Zahl5
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == "x"and x == "+"and b == "+"and n=="-":
    Ergebnis=Zahl1+(Zahl2*Zahl3)+Zahl4-Zahl5
elif z == "x"and x == "+"and b == "-"and n=="-":
    Ergebnis=Zahl1+(Zahl2*Zahl3)-Zahl4-Zahl5
elif z == "x"and x == "+"and b == ":"and n=="-":
    try:
        Ergebnis=Zahl1+((Zahl2*Zahl3)/Zahl4)-Zahl5
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == "x"and x == "+"and b == "x"and n=="-":
    Ergebnis=Zahl1+((Zahl2*Zahl3)*Zahl4)-Zahl5

elif z == "+"and x == "x"and b == "+"and n=="-":
    Ergebnis=(Zahl1*Zahl2)+Zahl3+Zahl4-Zahl5
elif z == "+"and x == "x"and b == "-"and n=="-":
    Ergebnis=(Zahl1*Zahl2)+Zahl3-Zahl4-Zahl5
elif z == "+"and x == "x"and b == ":"and n=="-":
    try:
        Ergebnis=((Zahl1*Zahl2)+(Zahl3/Zahl4))-Zahl5
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == "+"and x == "x"and b == "x"and n=="-":
    Ergebnis=(Zahl1*Zahl2)+(Zahl3*Zahl4)-Zahl5
elif z == "-"and x == "x"and b == "+"and n=="-":
    Ergebnis=(Zahl1*Zahl2)-Zahl3+Zahl4-Zahl5
elif z == "-"and x == "x"and b == "-"and n=="-":
    Ergebnis=(Zahl1*Zahl2)-Zahl3-Zahl4-Zahl5
elif z == "-"and x == "x"and b == "x"and n=="-":
    Ergebnis=(Zahl*Zahl2)-(Zahl3*Zahl4)-Zahl5
elif z == "-"and x == "x"and b == ":"and n=="-":
    try:
        Ergebnis=(Zahl1*Zahl2)-(Zahl3/Zahl4)-Zahl5
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == ":"and x == "x"and b == "+"and n=="-":
    try:
        Ergebnis=(Zahl1*(Zahl2)/Zahl3)+Zahl4-Zahl5
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == ":"and x == "x"and b == "-"and n=="-":
    try:
        Ergebnis=(Zahl1*(Zahl2)/Zahl3)-Zahl4-Zahl5
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == ":"and x == "x"and b == "x"and n=="-":
    try:
        Ergebnis=((Zahl1*Zahl2)/Zahl3)*Zahl4-Zahl5
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == ":"and x == "x"and b == ":"and n=="-":
    try:
        Ergebnis=((Zahl1*Zahl2)/Zahl3)/Zahl4-Zahl5
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == "x"and x == "x"and b == "+"and n=="-":
    Ergebnis=((Zahl1*Zahl2)*Zahl3)+Zahl4-Zahl5
elif z == "x"and x == "x"and b == "-"and n=="-":
    Ergebnis=((Zahl1*Zahl2)*Zahl3)-Zahl4-Zahl5
elif z == "x"and x == "x"and b == ":"and n=="-":
    try:
        Ergebnis=((Zahl1*Zahl2)*Zahl3)/Zahl4-Zahl5
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == "x"and x == "x"and b == "x"and n=="-":
    Ergebnis=((Zahl1*Zahl2)*Zahl3)*Zahl4-Zahl5
    
elif z == "+"and x == ":"and b == "+"and n=="-":
    try:
        Ergebnis=(Zahl1/Zahl2)+Zahl3+Zahl4-Zahl5
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == "+"and x == ":"and b == "-"and n=="-":
    try:
        Ergebnis=(Zahl1/Zahl2)+Zahl3-Zahl4-Zahl5
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == "+"and x == ":"and b == ":"and n=="-":
    try:
        Ergebnis=(Zahl1/Zahl2)+(Zahl3/Zahl4)-Zahl5
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == "+"and x == ":"and b == "x"and n=="-":
    try:
        Ergebnis=(Zahl1/Zahl2)+(Zahl3*Zahl4)-Zahl5
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == "-"and x == ":"and b == "+"and n=="-":
    try:
        Ergebnis=(Zahl1/Zahl2)-Zahl3+Zahl4-Zahl5
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == "-"and x == ":"and b == "-"and n=="-":
    try:
        Ergebnis=(Zahl1/Zahl2)-Zahl3-Zahl4-Zahl5
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == "-"and x == ":"and b == "x"and n=="-":
    try:
        Ergebnis=(Zahl1/Zahl2)-(Zahl3*Zahl4)-Zahl5
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == "-"and x == ":"and b == ":"and n=="-":
    try:
        Ergebnis=(Zahl1/Zahl2)-(Zahl3/Zahl4)-Zahl5
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == ":"and x == ":"and b == "+"and n=="-":
    try:
        Ergebnis=(Zahl/(Zahl2)/Zahl3)+Zahl4-Zahl5
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == ":"and x == ":"and b == "-"and n=="-":
    try:
        Ergebnis=(Zahl1/(Zahl2)/Zahl3)-Zahl4-Zahl5
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == ":"and x == ":"and b == ":"and n=="-":
    try:
        Ergebnis=(Zahl1/(Zahl2)/Zahl3)/Zahl4-Zahl5
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == ":"and x == ":"and b == "x"and n=="-":
    try:
        Ergebnis=((Zahl1/Zahl2)/Zahl3)*Zahl4-Zahl5
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == "x"and x == ":"and b == "+"and n=="-":
    try:
        Ergebnis=((Zahl1/Zahl2)*Zahl3)+Zahl4-Zahl5
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == "x"and x == ":"and b == "-"and n=="-":
    try:
        Ergebnis=((Zahl1/Zahl2)*Zahl3)-Zahl4-Zahl5
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == "x"and x == ":"and b == ":"and n=="-":
    try:
        Ergebnis=((Zahl1/Zahl2)*Zahl3)/Zahl4-Zahl5
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == "x"and x == ":"and b == "x"and n=="-":
    try:
        Ergebnis=((Zahl1/Zahl2)*Zahl3)*Zahl4-Zahl5
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
    
elif z == "+"and x == "-"and b == "+"and n=="-":
    Ergebnis=Zahl1-Zahl2+Zahl3+Zahl4-Zahl5
elif z == "+"and x == "-"and b == "-"and n=="-":
    Ergebnis=Zahl1-Zahl2+Zahl3-Zahl4-Zahl5
elif z == "+"and x == "-"and b == ":"and n=="-":
    try:
        Ergebnis=Zahl1-Zahl2+(Zahl3/Zahl4)-Zahl5
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == "+"and x == "-"and b == "x"and n=="-":
    Ergebnis=Zahl1-Zahl2+(Zahl3*Zahl4)-Zahl5
elif z == "-"and x == "-"and b == "+"and n=="-":
    Ergebnis=Zahl1-Zahl2-Zahl3+Zahl4-Zahl5
elif z == "-"and x == "-"and b == "-"and n=="-":
    Ergebnis=Zahl1-Zahl2-Zahl3-Zahl4-Zahl5
elif z == "-"and x == "-"and b == "x"and n=="-":
    Ergebnis=Zahl1-Zahl2-(Zahl3*Zahl4)-Zahl5
elif z == "-"and x == "-"and b == ":"and n=="-":
    try:
        Ergebnis=Zahl1-Zahl2-(Zahl3/Zahl4)-Zahl5
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == ":"and x == "-"and b == "+"and n=="-":
    try:
        Ergebnis=Zahl1-(Zahl2/Zahl3)+Zahl4-Zahl5
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == ":"and x == "-"and b == "-"and n=="-":
    try:
        Ergebnis=Zahl1-(Zahl2/Zahl3)-Zahl4-Zahl5
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == ":"and x == "-"and b == "x"and n=="-":
    try:
        Ergebnis=Zahl1-((Zahl2/Zahl3)*Zahl4)-Zahl5
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == ":"and x == "-"and b == ":"and n=="-":
    try:
        Ergebnis=Zahl1-((Zahl2/Zahl3)/Zahl4)-Zahl5
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == "x"and x == "-"and b == "+"and n=="-":
    Ergebnis=Zahl1-(Zahl2*Zahl3)+Zahl4-Zahl5
elif z == "x"and x == "-"and b == "-"and n=="-":
    Ergebnis=Zahl1-(Zahl2*Zahl3)-Zahl4-Zahl5
elif z == "x"and x == "-"and b == ":"and n=="-":
    try:
        Ergebnis=Zahl1-((Zahl2*Zahl3)/Zahl4)-Zahl5
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == "x"and x == "-"and b == "x"and n=="-":
    Ergebnis=Zahl1-((Zahl2*Zahl3)*Zahl4)-Zahl5


elif z == "+"and x == "+"and b == "+"and n=="x":
    Ergebnis=Zahl1+Zahl2+Zahl3+(Zahl4*Zahl5)
elif z == "+"and x == "+"and b == "-"and n=="x":
    Ergebnis=Zahl1+Zahl2+Zahl3-(Zahl4*Zahl5)
elif z == "+"and x == "+"and b == ":"and n=="x":
    try:
        Ergebnis=Zahl1+Zahl2+((Zahl3/Zahl4)*Zahl5)
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == "+"and x == "+"and b == "x"and n=="x":
    Ergebnis=Zahl1+Zahl2+((Zahl3*Zahl4)*Zahl5)
elif z == "-"and x == "+"and b == "+"and n=="x":
    Ergebnis=Zahl1+Zahl2-Zahl3+(Zahl4*Zahl5)
elif z == "-"and x == "+"and b == "-"and n=="x":
    Ergebnis=Zahl1+Zahl2-Zahl3-(Zahl4*Zahl5)
elif z == "-"and x == "+"and b == "x"and n=="x":
    Ergebnis=Zahl1+Zahl2-((Zahl3*Zahl4)*Zahl5)
elif z == "-"and x == "+"and b == ":"and n=="x":
    try:
        Ergebnis=Zahl1+Zahl2-((Zahl3/Zahl4)*Zahl5)
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == ":"and x == "+"and b == "+"and n=="x":
    try:
        Ergebnis=Zahl1+((Zahl2/Zahl3)+(Zahl4*Zahl5))
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == ":"and x == "+"and b == "-"and n=="x":
    try:
        Ergebnis=Zahl1+((Zahl2/Zahl3)-(Zahl4*Zahl5))
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == ":"and x == "+"and b == "x"and n=="x":
    try:
        Ergebnis=Zahl1+(((Zahl2/Zahl3)*Zahl4)*Zahl5)
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == ":"and x == "+"and b == ":"and n=="x":
    try:
        Ergebnis=Zahl1+(((Zahl2/Zahl3)/Zahl4)*Zahl5)
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == "x"and x == "+"and b == "+"and n=="x":
    Ergebnis=Zahl1+((Zahl2*Zahl3)+(Zahl4*Zahl5))
elif z == "x"and x == "+"and b == "-"and n=="x":
    Ergebnis=Zahl1+((Zahl2*Zahl3)-(Zahl4*Zahl5))
elif z == "x"and x == "+"and b == ":"and n=="x":
    try:
        Ergebnis=Zahl1+(((Zahl2*Zahl3)/Zahl4)*Zahl5)
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == "x"and x == "+"and b == "x"and n=="x":
    Ergebnis=Zahl1+(((Zahl2*Zahl3)*Zahl4)*Zahl5)

elif z == "+"and x == "x"and b == "+"and n=="x":
    Ergebnis=(Zahl1*Zahl2)+Zahl3+(Zahl4*Zahl5)
elif z == "+"and x == "x"and b == "-"and n=="x":
    Ergebnis=(((Zahl1*Zahl2)+Zahl3)-(Zahl4*Zahl5))
elif z == "+"and x == "x"and b == ":"and n=="x":
    try:
        Ergebnis=((Zahl1*Zahl2)+((Zahl3/Zahl4)*Zahl5))
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == "+"and x == "x"and b == "x"and n=="x":
    Ergebnis=((Zahl1*Zahl2)+((Zahl3*Zahl4)*Zahl5))
elif z == "-"and x == "x"and b == "+"and n=="x":
    Ergebnis=(((Zahl1*Zahl2)-Zahl3)+(Zahl4*Zahl5))
elif z == "-"and x == "x"and b == "-"and n=="x":
    Ergebnis=(((Zahl1*Zahl2)-Zahl3)-(Zahl4*Zahl5))
elif z == "-"and x == "x"and b == "x"and n=="x":
    Ergebnis=((Zahl*Zahl2)-((Zahl3*Zahl4)*Zahl5))
elif z == "-"and x == "x"and b == ":"and n=="x":
    try:
        Ergebnis=(Zahl1*Zahl2)-((Zahl3/Zahl4)*Zahl5)
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == ":"and x == "x"and b == "+"and n=="x":
    try:
        Ergebnis=(Zahl1*(Zahl2)/Zahl3)+(Zahl4*Zahl5)
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == ":"and x == "x"and b == "-"and n=="x":
    try:
        Ergebnis=((Zahl1*Zahl2)/Zahl3)-(Zahl4*Zahl5)
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == ":"and x == "x"and b == "x"and n=="x":
    try:
        Ergebnis=((((Zahl1*Zahl2)/Zahl3)*Zahl4)*Zahl5)
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == ":"and x == "x"and b == ":"and n=="x":
    try:
        Ergebnis=((((Zahl1*Zahl2)/Zahl3)/Zahl4)*Zahl5)
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == "x"and x == "x"and b == "+"and n=="x":
    Ergebnis=((Zahl1*Zahl2)*Zahl3)+(Zahl4*Zahl5)
elif z == "x"and x == "x"and b == "-"and n=="x":
    Ergebnis=((Zahl1*Zahl2)*Zahl3)-(Zahl4*Zahl5)
elif z == "x"and x == "x"and b == ":"and n=="x":
    try:
        Ergebnis=((((Zahl1*Zahl2)*Zahl3)/Zahl4)*Zahl5)
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == "x"and x == "x"and b == "x"and n=="x":
    Ergebnis=((((Zahl1*Zahl2)*Zahl3)*Zahl4)*Zahl5)
    
elif z == "+"and x == ":"and b == "+"and n=="x":
    try:
        Ergebnis=((Zahl1/Zahl2)+Zahl3)+(Zahl4*Zahl5)
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == "+"and x == ":"and b == "-"and n=="x":
    try:
        Ergebnis=((Zahl1/Zahl2)+Zahl3)-(Zahl4*Zahl5)
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == "+"and x == ":"and b == ":"and n=="x":
    try:
        Ergebnis=(Zahl1/Zahl2)+((Zahl3/Zahl4)*Zahl5)
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == "+"and x == ":"and b == "x"and n=="x":
    try:
        Ergebnis=(Zahl1/Zahl2)+((Zahl3*Zahl4)*Zahl5)
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == "-"and x == ":"and b == "+"and n=="x":
    try:
        Ergebnis=((Zahl1/Zahl2)-Zahl3)+(Zahl4*Zahl5)
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == "-"and x == ":"and b == "-"and n=="x":
    try:
        Ergebnis=((Zahl1/Zahl2)-Zahl3)-(Zahl4*Zahl5)
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == "-"and x == ":"and b == "x"and n=="x":
    try:
        Ergebnis=(Zahl1/Zahl2)-((Zahl3*Zahl4)*Zahl5)
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == "-"and x == ":"and b == ":"and n=="x":
    try:
        Ergebnis=((Zahl1/Zahl2)-((Zahl3/Zahl4)*Zahl5))
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == ":"and x == ":"and b == "+"and n=="x":
    try:
        Ergebnis=((Zahl/(Zahl2)/Zahl3)+(Zahl4*Zahl5))
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == ":"and x == ":"and b == "-"and n=="x":
    try:
        Ergebnis=((Zahl1/(Zahl2)/Zahl3)-(Zahl4*Zahl5))
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == ":"and x == ":"and b == ":"and n=="x":
    try:
        Ergebnis=(((Zahl1/(Zahl2)/Zahl3)/Zahl4)*Zahl5)
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == ":"and x == ":"and b == "x"and n=="x":
    try:
        Ergebnis=((((Zahl1/Zahl2)/Zahl3)*Zahl4)*Zahl5)
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == "x"and x == ":"and b == "+"and n=="x":
    try:
        Ergebnis=(((Zahl1/Zahl2)*Zahl3)+(Zahl4*Zahl5))
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == "x"and x == ":"and b == "-"and n=="x":
    try:
        Ergebnis=(((Zahl1/Zahl2)*Zahl3)-(Zahl4*Zahl5))
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == "x"and x == ":"and b == ":"and n=="x":
    try:
        Ergebnis=((((Zahl1/Zahl2)*Zahl3)/Zahl4)*Zahl5)
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == "x"and x == ":"and b == "x"and n=="x":
    try:
        Ergebnis=(((((Zahl1/Zahl2)*Zahl3)*Zahl4)*Zahl5))
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
    
elif z == "+"and x == "-"and b == "+"and n=="x":
    Ergebnis=Zahl1-Zahl2+Zahl3+(Zahl4*Zahl5)
elif z == "+"and x == "-"and b == "-"and n=="x":
    Ergebnis=Zahl1-Zahl2+Zahl3-(Zahl4*Zahl5)
elif z == "+"and x == "-"and b == ":"and n=="x":
    try:
        Ergebnis=Zahl1-Zahl2+((Zahl3/Zahl4)*Zahl5)
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == "+"and x == "-"and b == "x"and n=="x":
    Ergebnis=Zahl1-Zahl2+((Zahl3*Zahl4)*Zahl5)
elif z == "-"and x == "-"and b == "+"and n=="x":
    Ergebnis=(((Zahl1-Zahl2)-Zahl3)+(Zahl4*Zahl5))
elif z == "-"and x == "-"and b == "-"and n=="x":
    Ergebnis=(((Zahl1-Zahl2)-Zahl3)-(Zahl4*Zahl5))
elif z == "-"and x == "-"and b == "x"and n=="x":
    Ergebnis=(Zahl1-(Zahl2-((Zahl3*Zahl4)*Zahl5)))
elif z == "-"and x == "-"and b == ":"and n=="x":
    try:
        Ergebnis=(Zahl1-(Zahl2-((Zahl3/Zahl4)*Zahl5)))
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == ":"and x == "-"and b == "+"and n=="x":
    try:
        Ergebnis=((Zahl1-(Zahl2/Zahl3))+(Zahl4*Zahl5))
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == ":"and x == "-"and b == "-"and n=="x":
    try:
        Ergebnis=((Zahl1-(Zahl2/Zahl3))-(Zahl4*Zahl5))
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == ":"and x == "-"and b == "x"and n=="x":
    try:
        Ergebnis=(Zahl1-(((Zahl2/Zahl3)*Zahl4)*Zahl5))
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == ":"and x == "-"and b == ":"and n=="x":
    try:
        Ergebnis=(Zahl1-(((Zahl2/Zahl3)/Zahl4)*Zahl5))
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == "x"and x == "-"and b == "+"and n=="x":
    Ergebnis=((Zahl1-(Zahl2*Zahl3))+(Zahl4*Zahl5))
elif z == "x"and x == "-"and b == "-"and n=="x":
    Ergebnis=((Zahl1-(Zahl2*Zahl3))-(Zahl4*Zahl5))
elif z == "x"and x == "-"and b == ":"and n=="x":
    try:
        Ergebnis=Zahl1-(((Zahl2*Zahl3)/Zahl4)*Zahl5)
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == "x"and x == "-"and b == "x"and n=="x":
    Ergebnis=Zahl1-(((Zahl2*Zahl3)*Zahl4)*Zahl5)


elif z == "+"and x == "+"and b == "+"and n==":":
    try:
        Ergebnis=Zahl1+Zahl2+Zahl3+(Zahl4/Zahl5)
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == "+"and x == "+"and b == "-"and n==":":
    try:
        Ergebnis=Zahl1+Zahl2+Zahl3-(Zahl4/Zahl5)
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == "+"and x == "+"and b == ":"and n==":":
    try:
        Ergebnis=Zahl1+Zahl2+((Zahl3/Zahl4)/Zahl5)
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == "+"and x == "+"and b == "x"and n==":":
    try:
        Ergebnis=Zahl1+Zahl2+((Zahl3*Zahl4)/Zahl5)
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == "-"and x == "+"and b == "+"and n==":":
    try:
        Ergebnis=Zahl1+Zahl2-Zahl3+(Zahl4/Zahl5)
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == "-"and x == "+"and b == "-"and n==":":
    try:
        Ergebnis=Zahl1+Zahl2-Zahl3-(Zahl4/Zahl5)
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == "-"and x == "+"and b == "x"and n==":":
    try:
        Ergebnis=Zahl1+Zahl2-((Zahl3*Zahl4)/Zahl5)
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == "-"and x == "+"and b == ":"and n==":":
    try:
        Ergebnis=Zahl1+Zahl2-((Zahl3/Zahl4)/Zahl5)
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == ":"and x == "+"and b == "+"and n==":":
    try:
        Ergebnis=Zahl1+((Zahl2/Zahl3)+(Zahl4/Zahl5))
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == ":"and x == "+"and b == "-"and n==":":
    try:
        Ergebnis=Zahl1+((Zahl2/Zahl3)-(Zahl4/Zahl5))
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == ":"and x == "+"and b == "x"and n==":":
    try:
        Ergebnis=Zahl1+(((Zahl2/Zahl3)*Zahl4)/Zahl5)
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == ":"and x == "+"and b == ":"and n==":":
    try:
        Ergebnis=Zahl1+(((Zahl2/Zahl3)/Zahl4)/Zahl5)
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == "x"and x == "+"and b == "+"and n==":":
    try:
        Ergebnis=Zahl1+((Zahl2*Zahl3)+(Zahl4/Zahl5))
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == "x"and x == "+"and b == "-"and n==":":
    try:
        Ergebnis=Zahl1+((Zahl2*Zahl3)-(Zahl4/Zahl5))
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == "x"and x == "+"and b == ":"and n==":":
    try:
        Ergebnis=Zahl1+(((Zahl2*Zahl3)/Zahl4)/Zahl5)
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == "x"and x == "+"and b == "x"and n==":":
    try:
        Ergebnis=Zahl1+(((Zahl2*Zahl3)*Zahl4)/Zahl5)
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"

elif z == "+"and x == "x"and b == "+"and n==":":
    try:
        Ergebnis=(Zahl1*Zahl2)+Zahl3+(Zahl4/Zahl5)
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == "+"and x == "x"and b == "-"and n==":":
    try:
        Ergebnis=(((Zahl1*Zahl2)+Zahl3)-(Zahl4/Zahl5))
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == "+"and x == "x"and b == ":"and n==":":
    try:
        Ergebnis=((Zahl1*Zahl2)+((Zahl3/Zahl4)/Zahl5))
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == "+"and x == "x"and b == "x"and n==":":
    try:
        Ergebnis=((Zahl1*Zahl2)+((Zahl3*Zahl4)/Zahl5))
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == "-"and x == "x"and b == "+"and n==":":
    try:
        Ergebnis=(((Zahl1*Zahl2)-Zahl3)+(Zahl4/Zahl5))
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == "-"and x == "x"and b == "-"and n==":":
    try:
        Ergebnis=(((Zahl1*Zahl2)-Zahl3)-(Zahl4/Zahl5))
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == "-"and x == "x"and b == "x"and n==":":
    try:
        Ergebnis=((Zahl*Zahl2)-((Zahl3*Zahl4)/Zahl5))
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == "-"and x == "x"and b == ":"and n==":":
    try:
        Ergebnis=(Zahl1*Zahl2)-((Zahl3/Zahl4)/Zahl5)
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == ":"and x == "x"and b == "+"and n==":":
    try:
        Ergebnis=(Zahl1*(Zahl2)/Zahl3)+(Zahl4/Zahl5)
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == ":"and x == "x"and b == "-"and n==":":
    try:
        Ergebnis=((Zahl1*Zahl2)/Zahl3)-(Zahl4/Zahl5)
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == ":"and x == "x"and b == "x"and n==":":
    try:
        Ergebnis=((((Zahl1*Zahl2)/Zahl3)*Zahl4)/Zahl5)
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == ":"and x == "x"and b == ":"and n==":":
    try:
        Ergebnis=((((Zahl1*Zahl2)/Zahl3)/Zahl4)/Zahl5)
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == "x"and x == "x"and b == "+"and n==":":
    try:
        Ergebnis=((Zahl1*Zahl2)*Zahl3)+(Zahl4/Zahl5)
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == "x"and x == "x"and b == "-"and n==":":
    Ergebnis=((Zahl1*Zahl2)*Zahl3)-(Zahl4/Zahl5)
elif z == "x"and x == "x"and b == ":"and n==":":
    try:
        Ergebnis=((((Zahl1*Zahl2)*Zahl3)/Zahl4)/Zahl5)
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == "x"and x == "x"and b == "x"and n==":":
    try:
        Ergebnis=((((Zahl1*Zahl2)*Zahl3)*Zahl4)/Zahl5)
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
    
elif z == "+"and x == ":"and b == "+"and n==":":
    try:
        Ergebnis=((Zahl1/Zahl2)+Zahl3)+(Zahl4/Zahl5)
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == "+"and x == ":"and b == "-"and n==":":
    try:
        Ergebnis=((Zahl1/Zahl2)+Zahl3)-(Zahl4/Zahl5)
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == "+"and x == ":"and b == ":"and n==":":
    try:
        Ergebnis=(Zahl1/Zahl2)+((Zahl3/Zahl4)/Zahl5)
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == "+"and x == ":"and b == "x"and n==":":
    try:
        Ergebnis=(Zahl1/Zahl2)+((Zahl3*Zahl4)/Zahl5)
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == "-"and x == ":"and b == "+"and n==":":
    try:
        Ergebnis=((Zahl1/Zahl2)-Zahl3)+(Zahl4/Zahl5)
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == "-"and x == ":"and b == "-"and n==":":
    try:
        Ergebnis=((Zahl1/Zahl2)-Zahl3)-(Zahl4/Zahl5)
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == "-"and x == ":"and b == "x"and n==":":
    try:
        Ergebnis=(Zahl1/Zahl2)-((Zahl3*Zahl4)/Zahl5)
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == "-"and x == ":"and b == ":"and n==":":
    try:
        Ergebnis=((Zahl1/Zahl2)-((Zahl3/Zahl4)/Zahl5))
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == ":"and x == ":"and b == "+"and n==":":
    try:
        Ergebnis=((Zahl/(Zahl2)/Zahl3)+(Zahl4/Zahl5))
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == ":"and x == ":"and b == "-"and n==":":
    try:
        Ergebnis=((Zahl1/(Zahl2)/Zahl3)-(Zahl4/Zahl5))
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == ":"and x == ":"and b == ":"and n==":":
    try:
        Ergebnis=(((Zahl1/(Zahl2)/Zahl3)/Zahl4)/Zahl5)
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == ":"and x == ":"and b == "x"and n==":":
    try:
        Ergebnis=((((Zahl1/Zahl2)/Zahl3)*Zahl4)/Zahl5)
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == "x"and x == ":"and b == "+"and n==":":
    try:
        Ergebnis=(((Zahl1/Zahl2)*Zahl3)+(Zahl4/Zahl5))
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == "x"and x == ":"and b == "-"and n==":":
    try:
        Ergebnis=(((Zahl1/Zahl2)*Zahl3)-(Zahl4/Zahl5))
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == "x"and x == ":"and b == ":"and n==":":
    try:
        Ergebnis=((((Zahl1/Zahl2)*Zahl3)/Zahl4)/Zahl5)
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == "x"and x == ":"and b == "x"and n==":":
    try:
        Ergebnis=(((((Zahl1/Zahl2)*Zahl3)*Zahl4)/Zahl5))
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
    
elif z == "+"and x == "-"and b == "+"and n==":":
    try:
        Ergebnis=Zahl1-Zahl2+Zahl3+(Zahl4/Zahl5)
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == "+"and x == "-"and b == "-"and n==":":
    try:
        Ergebnis=Zahl1-Zahl2+Zahl3-(Zahl4/Zahl5)
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == "+"and x == "-"and b == ":"and n==":":
    try:
        Ergebnis=Zahl1-Zahl2+((Zahl3/Zahl4)/Zahl5)
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == "+"and x == "-"and b == "x"and n==":":
    try:
        Ergebnis=Zahl1-Zahl2+((Zahl3*Zahl4)/Zahl5)
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == "-"and x == "-"and b == "+"and n==":":
    try:
        Ergebnis=(((Zahl1-Zahl2)-Zahl3)+(Zahl4/Zahl5))
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == "-"and x == "-"and b == "-"and n==":":
    try:
        Ergebnis=(((Zahl1-Zahl2)-Zahl3)-(Zahl4/Zahl5))
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == "-"and x == "-"and b == "x"and n==":":
    try:
        Ergebnis=(Zahl1-(Zahl2-((Zahl3*Zahl4)/Zahl5)))
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == "-"and x == "-"and b == ":"and n==":":
    try:
        Ergebnis=(Zahl1-(Zahl2-((Zahl3/Zahl4)/Zahl5)))
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == ":"and x == "-"and b == "+"and n==":":
    try:
        Ergebnis=((Zahl1-(Zahl2/Zahl3))+(Zahl4/Zahl5))
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == ":"and x == "-"and b == "-"and n==":":
    try:
        Ergebnis=((Zahl1-(Zahl2/Zahl3))-(Zahl4/Zahl5))
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == ":"and x == "-"and b == "x"and n==":":
    try:
        Ergebnis=(Zahl1-(((Zahl2/Zahl3)*Zahl4)/Zahl5))
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == ":"and x == "-"and b == ":"and n==":":
    try:
        Ergebnis=(Zahl1-(((Zahl2/Zahl3)/Zahl4)/Zahl5))
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == "x"and x == "-"and b == "+"and n==":":
    try:
        Ergebnis=((Zahl1-(Zahl2*Zahl3))+(Zahl4/Zahl5))
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == "x"and x == "-"and b == "-"and n==":":
    try:
        Ergebnis=((Zahl1-(Zahl2*Zahl3))-(Zahl4/Zahl5))
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == "x"and x == "-"and b == ":"and n==":":
    try:
        Ergebnis=Zahl1-(((Zahl2*Zahl3)/Zahl4)/Zahl5)
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"
elif z == "x"and x == "-"and b == "x"and n==":":
    try:
        Ergebnis=Zahl1-(((Zahl2*Zahl3)*Zahl4)/Zahl5)
    except ZeroDivisionError:
        print("Durch 0 darf man nicht teilen")
        Ergebnis = "Nicht definiert"

def Ergebnis_():
    textlabel8 = Label(root, text=Ergebnis, font="Segoe 40")
    textlabel8.place(x=300, y=600)
Ergebnis__ = ttk.Button(root, text="Ergebnis anzeigen", command=Ergebnis_)
Ergebnis__.place(x=850, y=250, width=100, height=80)
root.mainloop()

Please wrap code in triple backticks to preserve the formatting:

```
if True:
    print(''Hello world!')
```

You can do that by selecting the code and then clicking the </> button.

Please post the complete traceback wrapped in backticks:

```
(traceback lines)
```

The problem is that you’re creating the GUI and then immediately getting values from the Entry boxes (x=str(entry6.get()), etc) before it has the opportunity to display itself.

You should instead create the GUI and then call root.mainloop().

When the user clicks the button, the callback function should get the values from the Entry boxes, etc, and perform the calculation.

Ich habe noch was geändert, aber weiß nicht warum es nicht funktioniert

Programm:

from tkinter import *
import tkinter.ttk as ttk

root=Tk()
root.title("Taschenrechner")
root.geometry("4000x3000")
textlabel1 = Label(root, text="", font="Segoe 30")
textlabel1.place(x=580, y=30)
textlabel1.config(text="Taschenrechner")
textlabel2 = Label(root, text="", font="Segoe 30")
textlabel2.place(x=70, y=100)
textlabel2.config(text="Zahl 1:")
textlabel3 = Label(root, text="", font="Segoe 30")
textlabel3.place(x=70, y=200)
textlabel3.config(text="Zahl 2:")
textlabel4 = Label(root, text="", font="Segoe 30")
textlabel4.place(x=70, y=300)
textlabel4.config(text="Zahl 3:")
textlabel5 = Label(root, text="", font="Segoe 30")
textlabel5.place(x=70, y=400)
textlabel5.config(text="Zahl 4:")
textlabel6 = Label(root, text="", font="Segoe 30")
textlabel6.place(x=70, y=500)
textlabel6.config(text="Zahl 5:")
textlabel7 = Label(root, text="", font="Segoe 30")
textlabel7.place(x=70, y=600)
textlabel7.config(text="Ergebnis:")
entry1 = Entry(master=root, font="Segoe 20", bg="white")
entry1.place(x=200, y=100, width=600, height=40)
entry2 = Entry(master=root, font="Segoe 20", bg="white")
entry2.place(x=200, y=200, width=600, height=40)
entry3 = Entry(master=root, font="Segoe 20", bg="white")
entry3.place(x=200, y=300, width=600, height=40)
entry4 = Entry(master=root, font="Segoe 20", bg="white")
entry4.place(x=200, y=400, width=600, height=40)
entry5 = Entry(master=root, font="Segoe 20", bg="white")
entry5.place(x=200, y=500, width=600, height=40)
def _x_(x):
    x = variable.get()
__x__=['+','-',':','x']
variable = StringVar()
variable.set(__x__[0])
dropdown1 = OptionMenu(root, variable, *__x__, command=_x_)
dropdown1.pack(expand=True)
dropdown1.place(x=200, y=150, width=600, height=40)
def _z_(z):
    z = variable1.get()
__z__=['+','-',':','x','=']
variable1 = StringVar()
variable1.set(__z__[0])
dropdown2 = OptionMenu(root, variable1, *__z__, command=_z_)
dropdown2.pack(expand=True)
dropdown2.place(x=200, y=250, width=600, height=40)
def _b_(b):
    b = variable2.get()
__b__=['+','-',':','x','=']
variable2 = StringVar()
variable2.set(__b__[0])
dropdown3 = OptionMenu(root, variable2, *__b__, command=_b_)
dropdown3.pack(expand=True)
dropdown3.place(x=200, y=350, width=600, height=40)
def _n_(n):
    n = variable3.get()
__n__=['+','-',':','x','=']
variable3 = StringVar()
variable3.set(__n__[0])
dropdown4 = OptionMenu(root, variable3, *__n__, command=_n_)
dropdown4.pack(expand=True)
dropdown4.place(x=200, y=450, width=600, height=40)
def Ergebnis_():
    Zahl1 = float(entry1.get())
    Zahl2 = float(entry2.get())

    if x == "+"and z == "=":
        Ergebnis=Zahl1+Zahl2
    elif x == "-"and z == "=":
        Ergebnis=Zahl1-Zahl2

und so weiter

Ich habe noch was geändert, weiß aber nicht warum es nicht funktioniert

Programm:

from tkinter import *
import tkinter.ttk as ttk

root=Tk()
root.title("Taschenrechner")
root.geometry("4000x3000")
textlabel1 = Label(root, text="", font="Segoe 30")
textlabel1.place(x=580, y=30)
textlabel1.config(text="Taschenrechner")
textlabel2 = Label(root, text="", font="Segoe 30")
textlabel2.place(x=70, y=100)
textlabel2.config(text="Zahl 1:")
textlabel3 = Label(root, text="", font="Segoe 30")
textlabel3.place(x=70, y=200)
textlabel3.config(text="Zahl 2:")
textlabel4 = Label(root, text="", font="Segoe 30")
textlabel4.place(x=70, y=300)
textlabel4.config(text="Zahl 3:")
textlabel5 = Label(root, text="", font="Segoe 30")
textlabel5.place(x=70, y=400)
textlabel5.config(text="Zahl 4:")
textlabel6 = Label(root, text="", font="Segoe 30")
textlabel6.place(x=70, y=500)
textlabel6.config(text="Zahl 5:")
textlabel7 = Label(root, text="", font="Segoe 30")
textlabel7.place(x=70, y=600)
textlabel7.config(text="Ergebnis:")
entry1 = Entry(master=root, font="Segoe 20", bg="white")
entry1.place(x=200, y=100, width=600, height=40)
entry2 = Entry(master=root, font="Segoe 20", bg="white")
entry2.place(x=200, y=200, width=600, height=40)
entry3 = Entry(master=root, font="Segoe 20", bg="white")
entry3.place(x=200, y=300, width=600, height=40)
entry4 = Entry(master=root, font="Segoe 20", bg="white")
entry4.place(x=200, y=400, width=600, height=40)
entry5 = Entry(master=root, font="Segoe 20", bg="white")
entry5.place(x=200, y=500, width=600, height=40)
def _x_(x):
    x = variable.get()
__x__=['+','-',':','x']
variable = StringVar()
variable.set(__x__[0])
dropdown1 = OptionMenu(root, variable, *__x__, command=_x_)
dropdown1.pack(expand=True)
dropdown1.place(x=200, y=150, width=600, height=40)
def _z_(z):
    z = variable1.get()
__z__=['+','-',':','x','=']
variable1 = StringVar()
variable1.set(__z__[0])
dropdown2 = OptionMenu(root, variable1, *__z__, command=_z_)
dropdown2.pack(expand=True)
dropdown2.place(x=200, y=250, width=600, height=40)
def _b_(b):
    b = variable2.get()
__b__=['+','-',':','x','=']
variable2 = StringVar()
variable2.set(__b__[0])
dropdown3 = OptionMenu(root, variable2, *__b__, command=_b_)
dropdown3.pack(expand=True)
dropdown3.place(x=200, y=350, width=600, height=40)
def _n_(n):
    n = variable3.get()
__n__=['+','-',':','x','=']
variable3 = StringVar()
variable3.set(__n__[0])
dropdown4 = OptionMenu(root, variable3, *__n__, command=_n_)
dropdown4.pack(expand=True)
dropdown4.place(x=200, y=450, width=600, height=40)
def Ergebnis_():
    Zahl1 = float(entry1.get())
    Zahl2 = float(entry2.get())

    if x == "+"and z == "=":
        Ergebnis=Zahl1+Zahl2
    elif x == "-"and z == "=":
        Ergebnis=Zahl1-Zahl2

und so weiter

Hello, I rewrote my program a bit, but I don’t know where the problem is.
Here is the program:

from tkinter import *
import tkinter.ttk as ttk

root=Tk()
root.title("Taschenrechner")
root.geometry("4000x3000")
textlabel1 = Label(root, text="", font="Segoe 30")
textlabel1.place(x=580, y=30)
textlabel1.config(text="Taschenrechner")
textlabel2 = Label(root, text="", font="Segoe 30")
textlabel2.place(x=70, y=100)
textlabel2.config(text="Zahl 1:")
textlabel3 = Label(root, text="", font="Segoe 30")
textlabel3.place(x=70, y=200)
textlabel3.config(text="Zahl 2:")
textlabel4 = Label(root, text="", font="Segoe 30")
textlabel4.place(x=70, y=300)
textlabel4.config(text="Zahl 3:")
textlabel5 = Label(root, text="", font="Segoe 30")
textlabel5.place(x=70, y=400)
textlabel5.config(text="Zahl 4:")
textlabel6 = Label(root, text="", font="Segoe 30")
textlabel6.place(x=70, y=500)
textlabel6.config(text="Zahl 5:")
textlabel7 = Label(root, text="", font="Segoe 30")
textlabel7.place(x=70, y=600)
textlabel7.config(text="Ergebnis:")
entry1 = Entry(master=root, font="Segoe 20", bg="white")
entry1.place(x=200, y=100, width=600, height=40)
entry2 = Entry(master=root, font="Segoe 20", bg="white")
entry2.place(x=200, y=200, width=600, height=40)
entry3 = Entry(master=root, font="Segoe 20", bg="white")
entry3.place(x=200, y=300, width=600, height=40)
entry4 = Entry(master=root, font="Segoe 20", bg="white")
entry4.place(x=200, y=400, width=600, height=40)
entry5 = Entry(master=root, font="Segoe 20", bg="white")
entry5.place(x=200, y=500, width=600, height=40)
def _x_(x):
    x = variable.get()
__x__=['+','-',':','x']
variable = StringVar()
variable.set(__x__[0])
dropdown1 = OptionMenu(root, variable, *__x__, command=_x_)
dropdown1.pack(expand=True)
dropdown1.place(x=200, y=150, width=600, height=40)
def _z_(z):
    z = variable1.get()
__z__=['+','-',':','x','=']
variable1 = StringVar()
variable1.set(__z__[0])
dropdown2 = OptionMenu(root, variable1, *__z__, command=_z_)
dropdown2.pack(expand=True)
dropdown2.place(x=200, y=250, width=600, height=40)
def _b_(b):
    b = variable2.get()
__b__=['+','-',':','x','=']
variable2 = StringVar()
variable2.set(__b__[0])
dropdown3 = OptionMenu(root, variable2, *__b__, command=_b_)
dropdown3.pack(expand=True)
dropdown3.place(x=200, y=350, width=600, height=40)
def _n_(n):
    n = variable3.get()
__n__=['+','-',':','x','=']
variable3 = StringVar()
variable3.set(__n__[0])
dropdown4 = OptionMenu(root, variable3, *__n__, command=_n_)
dropdown4.pack(expand=True)
dropdown4.place(x=200, y=450, width=600, height=40)
def Ergebnis_():
    Zahl1 = float(entry1.get())
    Zahl2 = float(entry2.get())

    if x == "+"and z == "=":
        Ergebnis=Zahl1+Zahl2
    elif x == "-"and z == "=":
        Ergebnis=Zahl1-Zahl2
    elif x == "x"and z == "=":
        Ergebnis=Zahl1*Zahl2
    elif x == ":" and z == "=":
        try:
           Ergebnis=Zahl1/Zahl2
        except ZeroDivisionError:
            print("Durch 0 darf man nicht teilen")
            Ergebnis = "Nicht definiert"

And so on

Sorry, we can’t accept posts in languages other than English because we do not have the resources to moderate them. If you rewrite your post, flag it and I’ll reopen it.