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