Using Python v2, I have the user entering an amount into a string as below:
RawPurchaseAmount = raw_input(\"Please enter purchase amount: \") PurchaseAmount
You could use replace to remove all commas:
replace
"10,000.00".replace(",", "")