Odpowiedź :
limit = int(input("Podaj liczbę: "))
def fibonacci(limit):
a, b = 0, 1
while a< limit:
yield a
a, b = b, a+b
fib = fibonacci(limit)
for i in fib:
print(i)
limit = int(input("Podaj liczbę: "))
def fibonacci(limit):
a, b = 0, 1
while a< limit:
yield a
a, b = b, a+b
fib = fibonacci(limit)
for i in fib:
print(i)