0
How to print a,b,c values by using custom generator
How to print a,b,c values by using custom generator
1 Respuesta
+ 2
myiterator = (c for c in "abc")
for i in range(3):
print(next(myiterator))
use a list or another iterable instead of "abc"
How to print a,b,c values by using custom generator