if you're worried about iterating through a large ...
# getting-started
n
if you're worried about iterating through a large list twice you could look into using sequences as well