title: Writing to a file and asking the user for the file name
body: <pre><code>    import sys
      outfile = open( r'/Users/user1/Desktop/myDoc.txt', 'w' ) 
      outfile.write("hello world")
      outfile.close()
  </code></pre>
  
  <p>Two things I am trying to create a program that creates a file, and writes hello world to that file. Right now I have it setup so it will save to my desktop and name the file "myDoc.html". Is it possible for me to right the file name in a way so it saves to any persons desktop and so the program asks the user how they would like to name the file but keeps the .txt file extension?</p>