title: Writing strings to files
body: <p>Using this:</p>
  
  <pre><code>def Files(x,y,z):
    newH = x[:2]
    newH+Hero == open(x , "w")
    newH+Hero.write('z','y')
    newH+Hero.close()
  </code></pre>
  
  <p>I am trying to create a new file for each of the options 24 total yet the error is: AttributeError: 'str' object has no attribute 'write'
  exited with non-zero status any ideas?</p>