TypeError: must be str, not tuple
<p>&quot;TypeError: must be str, not tuple&quot; for the following code:</p>
<pre><code>receipt.write(output_to_receipt)
</code></pre>
<p>Please may someone explain what this error is?</p>