Question #74

What is the type of the object below?
(x*x for x in range(3))

It is a generator. It is recognizable by the ( and ) brackets along with the for ... in syntax. (wiki.python.org/moin/Generators)


Comment on Disqus:

Comment on Twitter:

Question difficulty: 🔵🔵🔵🔵🔵


Similar questions: