Run
myList = ['apple', 'banana', 'cherry'] myIterator = iter(myList) print(next(myIterator, 'NA')) print(next(myIterator, 'NA')) print(next(myIterator, 'NA')) print(next(myIterator, 'NA')) print(next(myIterator, 'NA'))
Output