LogiQuest
Back to Comprehensions and Generators
7

What is the output of the following code?

g = (i for i in range(3))
print(list(g), list(g))
Hard

Discussion (0)

  • No discussion yet. Ask a doubt or share a shortcut.

Log in to join the discussion.