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. Range with floating point steps
  10. Iterator: a counter
  11. Using iterator
  12. Iterator without temporary variable
  13. The type of the iterator
  14. Using iterator with next
  15. Mixing for and next
  16. Iterable which is not an iterator
  17. Iterator returning multiple values
  18. Range-like iterator
  19. Unbound or infinite iterator
  20. Unbound iterator Fibonacci
  21. Operations on Unbound iterator
  22. itertools
  23. itertools - count
  24. itertools - cycle
  25. Exercise: iterators - reimplement the range function
  26. Exercise: iterators - cycle
  27. Exercise: iterators - alter
  28. Exercise: iterators - limit Fibonacci
  29. Exercise: iterators - Fibonacci less memory
  30. Exercise: read char
  31. Exercise: read section
  32. Exercise: collect packets
  33. Exercise: compare files
  34. Solution: iterators - limit Fibonacci
  35. Solution: iterators - Fibonacci less memory
  36. Solution: read section
  37. Solution: compare files
  38. Solution: collect packets