UNB
/
CS
/
David Bremner
/
teaching
/
cs2613
/
labs
/
L17
/ fibgen.py
RecentChanges
#!/usr/bin/python3
def
fib
(
max
):
a
,
b
=
0
,
1
while
a
<
max
:
yield
a a
,
b
=
b
,
a
+
b