I am interested in an iterative algorithm for Fibonacci numbers, so I found the formula on wiki...it looks straight forward so I tried it in Python...it doesn\'t have a prob
Another possible approach:
a=0 b=1 d=[a,b] n=int(input("Enter a number")) i=2 while i<n: e=d[-1]+d[-2] d.append(e) i+=1 print("Fibonacci series of {} is {}".format(n,d))