This is just one line of a file that reads a list of numbers.
I need to remove the commas in the numbers. These numbers are already strings. I am having trouble figuring out how to write this.
['0', '0', '0', '0', '1,799', '']
how would i change 1,799 to 1799
i tried this
for i in str(doses):
if "," in i:
i.replace(",", "")
but it didn't do anything
plz help me understand what i did wrong.