ich bitte wieder um Hilfe. Ich möchte in dieser Struktur die Funktion 'blue_room' in 'way_1' aus den zweiten 'if' in 'way_2' abrufen.
Anmerkung: mir ist bekannt, die zwei 'if' da unten ist keine gute Sache und der Code ist wahrscheinlich nicht gut.
 
 Code: Alles auswählen
def way_1():
    def red_room():
        choice = input("> ")
        if "fight" in choice:
            dead()
        elif "flee" in choice:
            blue_room()
        else:
            dead("You are stupid.")
--> def blue_room():
        choice = input("> ")
        if "coat" in choice:
            dead(" ")
        elif "door" in choice:
            home("You flee.")
        else:
            dead("You are stupid.")
    choice = input("> ")
    if "red" in choice:
        red_room()
    elif "blue" in choice:
        blue_room()
    else:
        way_1()
def way_2():
    def white_room():
        choice = input("> ")
        if "drink" in choice:
            print("""  """)
            choice_drink = input("> ")
            if "break" in choice_drink:
 -->            way_1(blue_room())
            elif "sleep" in choice_drink:
                dead("Sleep you?")
            else:
                way_2()
        elif "flee" in choice:
            
            start()
        else:
            dead("You are Stupid.")

