replace characters not working in python [duplicate]

string.replace() returns the string with the replaced values. It doesn’t modify the original so do something like this:

link['href'] = link['href'].replace("..", "")

Leave a Comment