How to add text to the end of a line in a string? - Python
<p>How can I write some text to the end of a line in a multiple-line string in python, without knowing slice numbers? Here's an example:</p>

<pre><code>mystring="""
This is a string.
This is the second Line. #How to append to the end of this line, without slicing?
This is the third line."""
</code></pre>

<p>I hope I'm clear.</p>
