Iterators...
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | ap = [i for i in range(5)].__iter__() print(ap) bp = (l for l in range(5)) print(bp) cp = iter(range(5)) print(cp) dp = map(lambda x : x, [0, 1, 2, 3, 4]) print(dp) for A in ap: print(A) for B in bp: print(B) for C in cp: print(C) for D in dp: print(D) | cs |