Simpler way to run a generator function without caring about items
Setting up a for loop for this could be relatively expensive, keeping in mind that a for loop in Python is fundamentally successive execution of simple assignment statements; you’ll be executing n (number of items in generator) assignments, only to discard the assignment targets afterwards. You can instead feed the generator to a zero length … Read more