Possible Duplicate:
How do I use Python to convert a string to a number if it has commas in it as thousands separators?
How would I parse the string 1,000,000
(one million) into it's integer value in Python?
>>> a = '1,000,000'
>>> int(a.replace(',', ''))
1000000
>>>