"I am a human"
From the above string I want to remove the letter "a" so that the string becomes:
"I am human"
I used the following code and it works perfectly fine.
plural = input("Enter a string: ")
processed = plural.split()
processed.remove("a")
However, if the sentence doesn't have "a" in it it ends up with an error.
"I am not an elephant"
In this case I want the program to ignore it. How do I do it?