title: How to write two variables in one line?
body: <p>I would like to write two variable in a file. I mean this is my code :</p>
  
  <pre><code>file.write("a = %g\n" %(params[0]))
  file.write("b = %g\n" %(params[1]))
  </code></pre>
  
  <p>and what I want to write in my file is :</p>
  
  <pre><code>f(x) = ax + b 
  </code></pre>
  
  <p>where <code>a</code> is <code>params[0]</code> and <code>b</code> is <code>params[1]</code> but I don't know how to do this ? </p>
  
  <p>Thank you for your help !</p>