Generators and Generator Expressions


  1. range vs xrange in Python
  2. List comprehension vs Generator Expression
  3. List comprehension vs Generator Expression round 2
  4. Generators - simple function
  5. Generators - simple generators (yield)
  6. Generators - simple generators - call next
  7. Generators - fixed counter
  8. Generators - counter
  9. Generators - counter with parameter
  10. Generators - my_xrange
  11. Fibonacci plain
  12. Fibonacci copy-paste
  13. Fibonacci - generator
  14. Infinite series
  15. Integers
  16. Integers + 3
  17. Integers + Integers
  18. Filtered Fibonacci
  19. Filtered Fibonacci with ifilter
  20. The series.py
  21. Exercise: Alternator
  22. Exercise: Prime number generator
  23. Exercise: generator
  24. Exercise: Tower of Hanoi