How to delay input
<p>First i got a menu asking what i want to do, the problem is even if i select exit i still have to input the variables from the addEntry function. How do i make it so that only when i call the addEntry function i need to input those variables?</p>

<pre><code>date=raw_input('date')
amount=raw_input('amount')
desc=raw_input('desc')
account=raw_input('account')
def addEntry(date, amount, desc, account):
        transact=open("transactions.txt", "w")
        print &gt;&gt;transact, date, amount, desc, account
        transact.close()
</code></pre>
