title: Convert a string list to a tuple in Python
body: <p>I am trying to convert a string such as <code>'SUP E P I C'</code> to a tuple containing all the non-spaced strings. For example, if the input is <code>'SUP E P I C'</code>, then the program should return <code>('S', 'U', 'P', 'E', 'P', 'I', 'C')</code> and I am trying the obvious method of looping, and I started as follows: </p>
  
  <pre><code>for ch in john:
      if ch != ' ':
          j1 += ch
      else:
          # stuff
  </code></pre>
  
  <p>I'm stuck because I can add the first entry of the tuple but after that skipping the space is just escaping me. Any hints would be much appreciated! </p>