How to show number without commas in python

2

I have a question I have the following number 33,003,567.564 and I would like to convert this number to a number without commas but if with a decimal point it is: Get something like this:

33003567.564

And that this applies to any amount regardless of the number of commas. I have searched using fomat but it does not work

I hope you can help me

    
asked by Revsky01 29.10.2018 в 03:27
source

1 answer

4

I'm going to assume that all those numbers are in a string

numeros.replace(",","")

If you have them in a list

nuevo = ''.join(str(n) for n in numeros)
    
answered by 29.10.2018 / 08:11
source