I have this error message, Oops, try again. Does your anti_vowel function take exactly one argument (a string)? Your code threw a "string indices must be integers, not str" error.
Please help, i would like to understand what is wrong in my code
This is what my code looks like: def anti_vowel(text): vowel=("aeiouAEIOU") word='' x=0 y=0 while x<=(len(text)-1): for y in vowel: if text[x]!=vowel[y]: return word.append(text[x]) x+=1 return word.join()