Simple function error
<p>code:</p>

<pre><code>date=int(raw_input("Date:"))
ammount=int(raw_input("Ammount:"))
desc=str(raw_input("Description:"))
account=str(raw_input("Account:"))

def addEntry(date, ammount, desc, account):
    transact=open("transactions.txt", "w")
    transact.write(date, ammount, desc, account)
    transact.close()

addEntry(date, ammount, desc, account)
</code></pre>

<p>gives </p>

<pre><code>Traceback (most recent call last):
  File "C:\tbank.py", line 11, in &lt;module&gt;
    addEntry(date, ammount, desc, account)
  File "C:\tbank.py", line 8, in addEntry
    transact.write(date, ammount, desc, account)
TypeError: function takes exactly 1 argument (4 given)
</code></pre>

<p>how can i make it work?</p>
