16
What is the output of the following code?
g = (x for x in [1, 2])
print(list(g), list(g))Medium
What is the output of the following code?
g = (x for x in [1, 2])
print(list(g), list(g))Log in to join the discussion.