<filename>learn_python/iterators.py
lst = ['hello', 'beautiful', 'world']

itr = iter(lst)
print(next(itr))
print(next(itr))
print(next(itr))
print(next(itr))
<filename>learn_python/iterators.py
lst = ['hello', 'beautiful', 'world']

itr = iter(lst)
print(next(itr))
print(next(itr))
print(next(itr))
print(next(itr))