Dec-29-2017, 10:14 PM
It does work.
>>> "green eggs and spam".replace("e", "") 'grn ggs and spam'But it DOES NOT work in-place. You have to actually assign it's result to something. So...
test = words test = test.replace("show", "") test = test.replace("images", "") print(test)