Your function fails on anti_vowel("Hey look Words!"). It returns "['H']" when it should return "Hy lk Wrds!".
I thought adding a loop would solve the problem, but i already did it " for k in text" was my instruction but it said it was out of range, i dont know what im doing wrong, been looking for a similar exercise, hope a moderator can help me out.
def anti_vowel(text): #lenght= len(text) # text_list = list(text) counter=0 no_vowels= for c in text: if text[counter] not in "AEIOUaeiou": no_vowels.append(text[counter]) counter = counter+1 return no_vowels