# this is the fibonacci series by KV n = int(input("enter the last number :")) x = 1 while x < n+1: print(x) x = x+1
u, v = 0, 1 for i in xrange(0, 10): print u u, v = v, u + v