title: How to strip all whitespace from string
body: <p>How do I strip all the spaces in a python string? For example, I want a string like <code>strip my spaces</code> to be turned into <code>stripmyspaces</code>, but I cannot seem to accomplish that with <code>strip()</code>:</p>
  
  <pre><code>&gt;&gt;&gt; 'strip my spaces'.strip()
  'strip my spaces'
  </code></pre>