Is there an efficient way to know how many elements are in an iterator in Python, in general, without iterating through each and counting?

19 Answers
19

Leave a Reply

Your email address will not be published. Required fields are marked *