How to strip comma in Python string

You want to replace it, not strip it:

s = s.replace(',', '')

Leave a Comment