The quiz where the difficulty automagically adapts to the player's Python knowledge
This is a question page. You can use this page to bookmark a question. Start a new quiz!
Question #74
(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)
What is the type of the object below?
— The Python Quiz (@thepythonquiz) November 8, 2020
(x*x for x in range(3))
A generator
A list
A tuple
None of the above#python #python3 #pythonprogramming #learnpython
Question difficulty: π΅π΅π΅π΅π΅
Similar questions: