Computer Science, asked by salmanisana41, 4 months ago


which function we use for next​

Answers

Answered by MissPhenomenal
0

\huge \purple A \purple N \purple s \purple W \purple e \purple \R :-

  • Python next() function is used to fetch next item from the collection. It takes two arguments an iterator and a default value and returns an element. This method calls on iterator and throws an error if no item is present. To avoid the error, we can set a default value.
Answered by llBrandedKaminall
1

Answer:

Python next() function is used to fetch next item from the collection. It takes two arguments an iterator and a default value and returns an element. This method calls on iterator and throws an error if no item is present. To avoid the error, we can set a default value.

Explanation:

\huge\underbrace\mathcal\red{⬆⬆ANSWER⬆⬆}

Similar questions