Skip to content

Tag: replace

String replace doesn’t appear to be working [duplicate]

This question already has answers here: Why doesn’t calling a string method (such as .replace or .strip) modify (mutate) the string? (3 answers) Closed 7 months ago. I initially tried using = operator to assign value but it returned an error, then I tried using string.replace(): and But it is returning …