If I have a file iterator
with open('test1.txt','r') as f1:
print(f1.__next__())
But if I do the same thing for a list, it doesn't work.
a1 = [1,2,3,4,5]
a1.__next__()
So, what is difference between file iterator and list iterator? Do file and list (or tuple, dictionary, etc.) iterators behave differently?