from itertools import islice, count
a = list(range(5))
b = islice(count(), 0, 5)
a
b
for item in a:
    print(item)
for item in a:
    print(item)
for item in b:
    print(item)
for item in b:
    pass
tee function from itertools library