(data)
Simple data generator
Simple data generator
Simple data generator
def data_generator(data):
  """Simple data generator"""
  while True:
    for i, ele in enumerate(data):
      yield data[i]
def data_generator ( data ) : while True : for i , ele in enumerate ( data ) : yield data [ i ]