I know you can strip out white spaces from a string. For example:
abc = " hello everyone "
cba = abc.strip()
print(cba) # output would be "hello everyone" with no spaces either side
However, is it possible to strip characters out of a string? my first initial guess was:
eee = "hello everyone"
rrr = eee.strip(l)
In which I was hoping for the output to be "heo world", but I was met with an error instead
I have also tried replacing.
strip
with:
remove
But still, no luck.