How to strip comma in Python string January 23, 2023 by Tarik You want to replace it, not strip it: s = s.replace(',', '')