I'm using Pycharm as the software tool to code in python.
These words are in a text format but they are supposed to return different outputs
word = "<p>Santa is fat</p>"
secondword = "Potato & Tomato"
thirdword = "Koala eats http://koala.org/ a lot</p>"
I want to replace each of the following "<" , ">" , "&" to "<" , ">" , "&"
So the output should look like
outputword = "<p>Santa is fat</p>"
outputsecondword = "Fish & Chips"
outputthirdword = ""<p>Koala eats <a href='http://koala.org/'>http://koala.org/</a> a lot</p>"
Notice that the third word is a URL. I dont want to use the html library. I'm a noob at Python so please provide me with simple solutions. I considered using lists but whenever I replace a character in the list, it doesn't change
'>'and'<'...