Below is my code. The problem is that when I tested it using "Hey look Words! ", it prints Hy lk Words!
Why is the last letter "o" is still there?
def anti_vowel(text): string= for letters in text: string.append(letters) print string for each in string: if each in "aeiouAEIOU": string.remove(each) print "".join(string) anti_vowel("Hey look Words!")