Oops, try again. Your function fails on anti_vowel("Hey look Words!"). It returns "H" when it should return "Hy lk Wrds!".
can someone please review my code. the loop doesnt seem to go through each element in the string.
Replace this line with your code. def anti_vowel(text): word = "" for i in range(0 , len(text)-1): if text[i] not in "aeiouAEIOU": word = word + text[i] else: word = text return word w = raw_input("enter a word") print anti_vowel(w)