Asked about Generators and working with large data

Can you call len() on a generator?

An answer that works

No. A generator does not know how many items it will produce and cannot look ahead. If you need a count, either convert it to a list or count as you iterate.

Reading an answer is not being able to give one. The section that teaches this is Generators and working with large data, 3 hours of Python.

Learn this properly