Write multiple variables to a file
<p>I want to write two variable to a file using Python. </p>

<p>Based on what is stated <a href="http://stackoverflow.com/questions/899103/python-write-a-list-to-a-file">in this post</a> I wrote:</p>

<pre><code>f.open('out','w')
f.write("%s %s\n" %str(int("0xFF",16)) %str(int("0xAA",16))
</code></pre>

<p>But I get this error:</p>

<pre><code>Traceback (most recent call last):
  File "process-python", line 8, in &lt;module&gt;
    o.write("%s %s\n" %str(int("0xFF", 16))  %str(int("0xAA", 16)))
TypeError: not enough arguments for format string
</code></pre>
