def libs(n): a = 0 b = 1 while True: a, b = b, a + b if a > n: return yield a for each in libs(100): print(each, end=’ ') 1 1 2 3 5 8 13 21 34 55 89