1 def fib(n): 2 a, b = 1, 1 3 while a < n: 4 print(a, end = ' ') 5 a, b = b, a + b 6 print() 7 fib(1000)