Define a function called anti_vowel that takes one string, text, as input and returns the text with all of the vowels removed.
Hi everyone, this code prints H y l k W r d s ! instead of Hy lk Wrds!
How can I remove the spaces inside the words so that my code checks with solution?
Thanks in advance!
def anti_vowel(text): for c in text: if c not in "aeiouAEIOU": print c, anti_vowel("Hey look Words!")