<p dir="ltr"><br>
On 30 May 2013 12:42, "Eternaltheft" <<a href="mailto:eternaltheft@gmail.com">eternaltheft@gmail.com</a>> wrote:<br>
><br>
> Hi, I'm having trouble oh how prompt the user to enter a file name and how to set up conditions. For example, if there's no file name input by the user, a default is returned</p>
<p dir="ltr">Are you using raw_input? It returns an empty string if the user enters nothing, so you can just use an if.</p>
<p dir="ltr">filename = raw_input('file name: ')<br>
if not filename:<br>
filename = 'your default'<br>
</p>