Hey. I used this code to solve 8 / 15:
def anti_vowel(text): c = 0 temp =  final = "" for a in text: temp.append(a) for b in temp: if b == "a" or b == "e" or b == "i" or b == "o" or b == "u": temp.remove(letter) for c in temp: while c < len(temp): final += temp[x] c+=1 return final
so I'm taking text, adding the letters on it into a list (temp), and then removing all letters on that list which are vowels [I realise I am missing uppercase vowels]. The second part then adds those letters back into a string. However, when I run this script I get the following error message:
Oops, try again.
Your function fails on anti_vowel("Hey look Words!"). It returns "" when it should return "Hy lk Wrds!".
What's going on here?