21
What is the output of the following code?
nums = [1, 2, 3]
it = iter(nums)
next(it)
print(next(it), list(it))DiscussEasy
Loading subject content…
Loading practice questions…
What is the output of the following code?
nums = [1, 2, 3]
it = iter(nums)
next(it)
print(next(it), list(it))