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