Iteration tools

Python includes a rich set of tools for dealing with iterable series, both in the form of built-in functions such as sum(), any() and zip() as well as in the itertools module.

  1. We have covered the iterable protocol in detail  in this chapter.

  2. Well, they can, but recall that iterating over a dictionary yields only the keys!

  3. We often just use the term generator to refer to generator functions, though sometimes it may be necessary to distinguish generator functions from generator expressions, which we cover later.

  4. The authors are sworn by sacred oath never to use either Fibonacci or Quicksort implementations in demonstrations or exercises.

  5. This has nothing whatsoever to do with the order in which you should watch the episodes of Star Wars. If that's what you're looking for, might we suggest
    Machete Order

 

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset