-2
def madlibs1():
    print("welcome to madlibs generator")
    print("Type 1 and press enter to start the game")
    option = input("Type 1 to start: ")
    while option != 0:
        if option == 1:
            madlibs2()
        else:
            print("TRY AGAIN")
            madlibs1()
            break
    

    
def madlibs2():
    madliblist = ["england"]
    for x in madliblist:
        print(x)


madlibs1()

When I type 1 in console it should just show me content of second function but instead it just loops through the first function.

0 Answers0