+ 2

How can I replace something in a string in a list only if the string contains it

https://code.sololearn.com/czE9FgOD7IZ5/#py I want to remove the commas and my txt file contains integers that some of them contain a comma

2nd Jul 2018, 3:35 PM
David Gedalia Ordman
David Gedalia Ordman - avatar
1 Odpowiedź
+ 2
y=variable_name.replace(',','')
2nd Jul 2018, 4:11 PM
Maninder $ingh
Maninder $ingh - avatar