title: Join two lists in Python
body: <p>I'm trying to interface with pyqt, and I can't just put <code>zip (relleno, form_label)</code> due to the fact that later I have:</p>
  <pre><code>def text_file(self):
      filename = f&quot;{' '.join(self.radio_value())}.txt&quot;
      with open(filename, &quot;w&quot;) as f:
          f.write(&quot; &quot;.join(self.clickconector()))
          return f
  </code></pre>
  <p>If I do it the way previously said, I get an error: <code>TypeError: can only join an iterable</code></p>
  <p><code>relleno</code> and  <code>form_label</code> are lists both with 11 elements. I wanted to put them together and make one of 11x2, with <code>form_label</code> being column 1 and <code>relleno</code> column 2, but it only gives me the first element of both. Why does this happen and how do I fix it?</p>
  <pre><code>def clickconector (self):
      relleno = [self.bitacora.text(), self.turno.text(), self.asesor.text(), self.item.text(), self.modelo.text(), self.identificacion.text(), self.rig.text(),self.horometro.text(),self.condicion.text(),self.orden.text(), self.observacion.text()]
      form_label = [&quot;bitacora&quot;, 'turno', 'asesor', 'item', 'modelo', 'identificacion', 'rig', 'horometro', 'condicion', 'orden', 'observacion']
      for a,b in zip (form_label, relleno):
          return a,b
  </code></pre>