You can use slice:
new_iterator = iterator[50001:]
it2 = iter(new_iterator)
or range:
for i in range(50001, len(iterator)):
x = iterator[i]
_______________________________________________
Python-ideas mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at
https://mail.python.org/archives/list/[email protected]/message/KP6DAY4YQVA6LOX2XCRMIAEK5W3JZVG5/
Code of Conduct: http://python.org/psf/codeofconduct/