PyDocs

Nav

Python Runtime Services

next

builtins

function
  • next(iterator, /)
  • next(iterator, default, /)
next(iterator[, default])

Return the next item from the iterator.  If default is given and the
iterator is exhausted, it is returned instead of raising StopIteration.
0 Examples
No examples for builtins/next.
See Also
No see-alsos for builtins/next
0 Notes
No notes for next