So I currently have a string, and one by one I'm replacing each letter.
string = "beoffokefkoeffewlewfkoz"
string = string.replace("F","E") #E
string = string.replace("R","H") #H
string = string.replace("C","T") #T
string = string.replace("W","Z") #Z
print(string)
However,I've noticed that if I use any letter which I've used previously, it'll replace the letter I actually want it to be.. so if I change C to T, then I look for any T's in my string and replace them with say W, it now changes T to W. How do I prevent this from happening? I just want that one specific letter change to a specific letter happen once.