The use of next( )

Report a typo

Consider the following code:

letters = ['A', 'B', 'C']

my_iterator = iter(letters)

print(next(my_iterator))
# 'A'
print(next(my_iterator))
# 'B'
print(next(my_iterator))
# 'C'
print(next(my_iterator))
# ... ?

What will be the next output?

Select one option from the list
___

Create a free account to access the full topic