a, b = 0, 1
while a < max_nr:
yield a
a, b = b, a + b
print(list(fibonacci(300)))
def golden_ratio(max_nr: int):
a, b = 0, 1
while a < max_nr:
if a > 0:
fi = round(b/a, 5)
yield fi
a, b = b, a + b
print(list(golden_ratio(300)))