ch17: update from book draft

This commit is contained in:
Luciano Ramalho
2020-02-18 23:45:05 -03:00
parent 70650841b3
commit aa868e8f75
35 changed files with 788 additions and 31 deletions

View File

@@ -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[]