I am trying to remove the vowels from the given word and return the word.
For e.g.
word = "helleeEoo"
If I use the strip command as shown below I am getting an output of "hell" instead of "hll"
word = word.strip("aAeEiIoOuU")
But if I use the join command as shown below it works fine:
word = ''.join(c for c in word if c not in 'aAeEiIoOuU')
I am using python 3 and I would like to know why in the case of the strip command 'e' is present in final output?