8/15 my(method stolen from the web). Good enough?


#1
from string import maketrans
vowels = "aeiouAEIOU"
bowels = "zxcvbnmsdf"
transvowels = maketrans(vowels, bowels)

def anti_vowel(text):
      return text.translate(transvowels, "aeiouAEIOU")
        
print anti_vowel("Hey You!")

I was looking for a method that removes parts of a string and stumbled on this. Somehow it works, but I don't make any use of the maketrans table :expressionless:


#2

you do make use of the maketrans table


#3

yeah, i mean that i don't translate anything, i just remove stuff :sweat: