ch17: update from book draft
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
# BEGIN ARITPROG_ITERTOOLS
|
||||
# tag::ARITPROG_ITERTOOLS[]
|
||||
import itertools
|
||||
|
||||
|
||||
@@ -8,4 +8,4 @@ def aritprog_gen(begin, step, end=None):
|
||||
if end is not None:
|
||||
ap_gen = itertools.takewhile(lambda n: n < end, ap_gen)
|
||||
return ap_gen
|
||||
# END ARITPROG_ITERTOOLS
|
||||
# end::ARITPROG_ITERTOOLS[]
|
||||
|
||||
Reference in New Issue
Block a user