21
What is the output of the following code?
nums = [1, 2, 3]
it = iter(nums)
next(it)
print(next(it), list(it))Easy
What is the output of the following code?
nums = [1, 2, 3]
it = iter(nums)
next(it)
print(next(it), list(it))Log in to join the discussion.