Python: how to make form a string comprising of text and variable values in python 2.6 <p>Basically I'm looking for concatenating the strings and variable together. </p> <p>In Java: </p> <pre><code>String s = "HI my name is "+var_name+" I'm "+age+" years old"; </code></pre> <p>In PHP: </p> <pre><code>$s = "Hi my name is ".$var_name." I'm ".$age." years old"; </code></pre> <p>I want a similar thing in Python. I know the format function supported by Python 3.0 and above but I have a constraint of running it at Python version 2.6. I can't upgrade so please tell me the best method.</p> <p>P.S - I came to know that format works in Python 2.6 also. If you have any other method please let me know that also. It's always good to know more.</p>