Feb-14-2020, 12:08 PM
@jefsummers: Thank You very Much But I had to change the starting as Fibonacci starts with "1".
Also I am new to python so I agree that it was kinda screwed up
The final code is:
Also I am new to python so I agree that it was kinda screwed up
The final code is:
fibLimit= int(input('Enter how many Fibonacci numbers you would like to print = ')) fbNext = [1,1] for i in range(fibLimit): if i < 2: print(fbNext[i]) else: fbNext.append(fbNext[i-2] + fbNext[i - 1]) print(fbNext[i])