Hi people, I'm stuck on this what I believe is some sort of syntax error as the Python version I'm used to has slightly different syntax.
Here is my code:
def anti_vowel(text): vowels = ["a", "i", "e", "o", "u", "A", "I", "E", "O", "U"] anti =  for i in text: if i in vowels: pass else: anti.append(i) return anti
and here is the error message:
Oops, try again. Your function fails on anti_vowel("Hey look Words!"). It returns "['H', 'y', ' ', 'l', 'k', ' ', 'W', 'r', 'd', 's', '!']" when it should return "Hy lk Wrds!".
So any help regarding this error will be appreciated! Thanks