fork download
  1. def repeat(l):
  2. while True:
  3. for el in l:
  4. yield el
  5.  
  6.  
  7. test = repeat('huita')
  8.  
  9. for _ in range(25):
  10. print(next(test))
Success #stdin #stdout 0.02s 9176KB
stdin
Standard input is empty
stdout
h
u
i
t
a
h
u
i
t
a
h
u
i
t
a
h
u
i
t
a
h
u
i
t
a