asking a person for a file to save in
<p>What I'm trying to do is to ask a user for a name of a file to make and then save some stuff in this file.</p>

<p>My portion of the program looks like this:</p>

<pre><code>    if saving == 1:
        ask=raw_input("Type the name file: ")
        fileout=open(ask.csv,"w")
        fileout.write(output)
</code></pre>

<p>I want the format to be .csv, I tried different options but can't seem to work. </p>
