How to write a replace a word from a text file and replace it? [closed]

'Hello yourname, welcome to stackoverflow. You should choose a friendly name'.replace('yourname', 'thank u')

'Hello thank u, welcome to stackoverflow. You should choose a friendly name'

Leave a Comment