title: How do I convert a Python UUID into a string?
body: <p>I need to
  be able to assign a UUID to a user and document this in a .txt file. This is all I have:</p>
  <pre class="lang-py prettyprint-override"><code>import uuid
  
  a = input(&quot;What's your name?&quot;)
  print(uuid.uuid1())
  f.open(#file.txt)
  </code></pre>
  <p>I tried:</p>
  <pre class="lang-py prettyprint-override"><code>f.write(uuid.uuid1())
  </code></pre>
  <p>but nothing comes up, may be a logical error but I don't know.</p>