Quote:"replace() method" fails to change stringYou are wrong. The replace method did change the string, but you did not assign the return to a variable.
print(s.replace("g","#")) ## string is changedhttps://www.pythoncentral.io/pythons-str...n-strings/