title: TypeError: write() takes exactly one argument (2 given)
body: <p>so i am just writing a program that stores the email password onto an txt file and later can reopen it and log in</p>
  <pre><code>import os
  
  os.chdir(&quot;C:\\Users\\jason\\Desktop\\o\\other\\python\\python\\else\\account storage&quot;)
  def main():
      print(&quot;enter email&quot;)
      email = input(&quot;&gt;&gt; &quot;)
      print(&quot;password&quot;)
      pas = input(&quot;&gt;&gt; &quot;)
      file_obj = open(&quot;account.txt&quot;, &quot;r+&quot;)
      file_obj.write(email,pas)
      file_obj.close()
  
  if __name__ == '__main__':
      main()
  </code></pre>
  <p>after running this error shows &quot;TypeError: write() takes exactly one argument (2 given)&quot; btw if you helped or even tried to help me its an massive thanks. :)</p>