title: How to serialize strings with the Pickle module? (Python)
body: <p>Whenever I try to do this, it gives me the error:</p>
  <pre><code>TypeError: write() argument must be str, not bytes
  </code></pre>
  <p>The code I used was:</p>
  <pre><code>        with open(&quot;save.pckl&quot;, 'w') as f:
          pickle.dump(name, f)
  </code></pre>
  <p>Does anyone know why this happens? Does Pickle just not support serializing strings? Thanks in advance!</p>