how do you replace a spaced comma in a string?

text = "If it is hot , don’t touch"
newtext = text.replace(",", "")
words = newtext.split()
print(words)

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top