Oops, try again. Did you create a function called anti_vowel? Your code threw a "global name 'a' is not defined" error.
Help me work out where ive gone wrong, im trying to check if my letters in my list are found in the text.
Replace this line with your code. def anti_vowel(text): vowels = [a, e, i, o, u, A, E, I, O, U] for n in vowels: if vowels[n] in text: n = str(vowels[n]) text = text.remove(n) return text