LogiQuest
Back to Built-in Functions
21

What is the output of the following code?

nums = [1, 2, 3]
it = iter(nums)
next(it)
print(next(it), list(it))
Easy

Discussion (0)

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

Log in to join the discussion.