title: Removing '\n' character from print statement
body: <p>I have the following code when writing to a text file:</p>
  
  <pre><code>def writequiz(quizname,grade,perscore,score,username):
      details=[quizname,username,grade,perscore,score]
  
      with open('quizdb','a') as userquiz:
          print(details,file=userquiz)
  </code></pre>
  
  <p>Now the code is doing what I want it to (writing to a new line every time), however if I wanted to write every list to the same line in the text file how would I do this using the print method as used above? I know I could use <code>file.write</code>, but how do I remove the newline character in the <code>print</code> statement? Slightly hypothetical but it was bugging me.</p>