8. anti_vowel


#1

def anti_vowel(text):
...y = 'a','e','i','o','u','A','E','I','O','U'
...x = " "
...for z in text:
......if z not in y:
.........x = x + z
... return x
Oops, try again. Your function fails on anti_vowel("Hey look Words!"). It returns " Hy lk Wrds!" when it should return "Hy lk Wrds!". LOL


#2

x should be "" instead of " ". Since " " means that there is a space in the string.