title: Making multiple output lists into one list (python)
body: <p>I have this generator</p>
  
  <pre><code>def keys():
      objects = [{'1':True,'2':True,'3':False,'4':False,'5':True,'6':True}]
      rng = range(len(objects))
      clean = int(''.join(map(str, rng)))
      for keys, values in objects[clean].iteritems():
          if values == True:
              yield keys 
  </code></pre>
  
  <p>and then i want to get all the generator values, which I do using for loop</p>
  
  <pre><code>for i in keys():
      i= i.split()
      print i
  </code></pre>
  
  <p>and the output is : </p>
  
  <pre><code>['1']
  ['2']
  ['5']
  ['6']
  </code></pre>
  
  <p>is there a way I can add them to a single list?
  like [['1'],['2'],['5'],['6']] or most preferably ['1','2','5','6'].
  Would greatly appreciate your help. Thanks</p>