title: How can I concatenate a string and a number in Python?
body: <p>I was trying to concatenate a string and a number in Python. It gave me an error when I tried this:</p>
  <pre><code>&quot;abc&quot; + 9
  </code></pre>
  <p>The error is:</p>
  <pre class="lang-none prettyprint-override"><code>Traceback (most recent call last):
    File &quot;&lt;pyshell#5&gt;&quot;, line 1, in &lt;module&gt;
      &quot;abc&quot; + 9
  TypeError: cannot concatenate 'str' and 'int' objects
  </code></pre>
  <p>Why am I not able to do this?</p>
  <p>How <em>can</em> I concatenate a string and a number in Python?</p>