I wish to iterate over a list_iterator twice. When I currently try to do this, the iterator has nothing to iterate over the second time. Can I reset it?
l = iter(["1","2","3","4"])
for i in l:
print(i)
for i in l:
print(i)
A list_iter object is being passed to the function in which I wish to iterate twice in. Is it bad practive to pass around list_iterator objects?