I want to do the following:
thing = "hello world"
A = ["e","l"]
B = ["l","e"]
newthing = thing.replace(A,B)
print(newthing)
The output then should be hleeo wored, but it seems like I am not allowed to use replace with an array as input. Is there a way to still do it like this?