I am very new to programming in general and have started with Python. I am working through various problems to try and better my understanding.
I am trying to defin
You can use a list comp:
def anti_vowel(text): vowels = 'aeiouAEIOU' return "".join([x for x in text if x not in vowels]) print anti_vowel("Hey look words!") Hy lk wrds!
The list comprehension filters the vowels from the words.