def fibo(N): i = 0 a, b = 0, 1 while i < N: print b, a, b = b, a+b i += 1 fibo(10)