Python parse comma-separated number into int [duplicate]

>>> a="1,000,000"
>>> int(a.replace(',', ''))
1000000
>>> 

Leave a Comment