UNB
/
CS
/
David Bremner
/
teaching
/
cs4613
/
lectures
/
lecture15
/ counter1.py
RecentChanges
def
nats
():
n
=
0
while True
:
yield
n n
+=
1
g
=
nats
()
print
(
next
(
g
) +
next
(
g
) +
next
(
g
))