which function we use for next
Answers
Answered by
0
- 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
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:
Similar questions
English,
2 months ago
English,
2 months ago
Economy,
4 months ago
Computer Science,
4 months ago
English,
10 months ago