In [138]:
def main():
    fibFour = 0
    fibSix = 1
    count = 0
    fibFourList = []
    fibDefines = int(input("Enter Integer => "))
    
    
    while count < fibDefines:
        fibFourList.append(fibFour)
        storage = fibFour + fibSix
        fibFour = fibSix
        fibSix = storage
        count  += 1
    print(fibFourList)
    endgame()
    
def endgame():
    print("Would you like to retry? Y or N")
    response = input("==>")
    if response == "Y" or response == "y":
        main()
    elif response == "N" or response == "n":
        print("have a nice day")
    else:
        endgame()
main()
Enter Integer => 12
[0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89]
Would you like to retry? Y or N
==>Y
Enter Integer => 2
[0, 1]
Would you like to retry? Y or N
==>N
have a nice day
In [ ]: