title: Convert integer to string in Python
body: <p>How do I convert an integer to a string?</p>
  <pre><code>42   ⟶   &quot;42&quot;
  </code></pre>
  <hr />
  <p><sub>For the reverse, see <a href="https://stackoverflow.com/questions/379906/">How do I parse a string to a float or int?</a>. <code>float</code>s can be handled similarly, but handling the decimal points can be tricky because <a href="https://stackoverflow.com/questions/588004/">floating-point values are not precise</a>. See <a href="https://stackoverflow.com/questions/1317558">Converting a float to a string without rounding it</a> for more specific advice.</sub></p>