title: how to convert single quotes string to number in python
body: <p>I have a number of type string with single quotes. e,g                      </p>
  
  <pre><code>var = '2,000'
  type(var) # &lt;class 'str'&gt;
  </code></pre>
  
  <p>I want to convert it to int.</p>
  
  <p>I have tried <code>int(var)</code> But it gives an error </p>
  
  <blockquote>
    <p>invalid literal for int() with base 10: '2,000'</p>
  </blockquote>