When should you use generator expressions and when should you use list comprehensions in Python?
# Generator expression (x*2 for x in range(256)) # List com
Sometimes you can get away with the tee function from itertools, it returns multiple iterators for the same generator that can be used independently.