Iterators - with and without Itertools

  1. Advantages of iterators and generators
  2. The Fibonacci research institute
  3. Fibonacci plain
  4. Fibonacci copy-paste
  5. Iterators Glossary
  6. What are iterators and iterables?
  7. A file-handle is an iterator
  8. range is iterable but it is not an iterator
  9. Iterator: a counter
  10. Using iterator
  11. Iterator without temporary variable
  12. The type of the iterator
  13. Using iterator with next
  14. Mixing for and next
  15. Iterable which is not an iterator
  16. Iterator returning multiple values
  17. Range-like iterator
  18. Unbound or infinite iterator
  19. Unbound iterator Fibonacci
  20. Operations on Unbound iterator
  21. itertools
  22. itertools - count
  23. itertools - cycle
  24. Exercise: iterators - reimplement the range function
  25. Exercise: iterators - cycle
  26. Exercise: iterators - alter
  27. Exercise: iterators - limit Fibonacci
  28. Exercise: iterators - Fibonacci less memory
  29. Exercise: read char
  30. Exercise: read section
  31. Exercise: collect packets
  32. Exercise: compare files
  33. Solution: iterators - limit Fibonacci
  34. Solution: iterators - Fibonacci less memory
  35. Solution: read section
  36. Solution: compare files
  37. Solution: collect packets