How to change 000-000 to 000000 in Python? [duplicate]

print("000-000".replace("-", "")) #Output: "000000"

Leave a Comment