Oops, try again. Your function fails on anti_vowel("Hey look Words!"). It returns "Hy lk Words!" when it should return "Hy lk Wrds!".
Yo! I know that probably there'r few better ways to solve that but i decided to don't check other guys codes on forum for this case.
My code, for some reason, isn't cutting off 'o' in 'Words!' phrase and i dont know why is that. Beside it works well (for eg. it cuts off the 'o' letters in 'Look' phrase).
Any chance for help?
def anti_vowel(text): a =  for letter in text: a.append(letter) print a for b in a: if b == 'o' or b == 'u' or b == 'i' \ or b == 'e' or b == 'a' or b == 'O' \ or b == 'U' or b == 'I' or b == 'A' \ or b == 'E': a.remove(b) print '\n' print a o = len(a) print o while o >= 0: i = str() for x in a: i = i + x o = o - 1 print i return i anti_vowel('Hey look Words!')