Dec-29-2017, 10:05 PM
Hi everyone,
I am working on a filter and I want to replace some words with nothing and I found the methode with .replace("word", ""). I have tried it, I don't get an error but nothing changes when I print the variable.
Here is my code:
I am working on a filter and I want to replace some words with nothing and I found the methode with .replace("word", ""). I have tried it, I don't get an error but nothing changes when I print the variable.
Here is my code:
words = input() test = words test.replace("show", "") test.replace("images", "") test.replace("pictures", "") test.replace("photos", "") print("I will search for images of: " + test)