Tell me the mistake and the right code or any other way i should approach . please


#1

my code:

def anti_vowel(text):
    for c in list(text):
        if c==list('aeiouAEIOU'):
            list(text).delete(c)
    return ''.join(list(text))

Error shown:
Oops, try again. Your function fails on anti_vowel("Hey look Words!"). It returns "Hey look Words!" when it should return "Hy lk Wrds!".


#2

Hi, this belongs in the Python section. Please move it there. In addition, please post a link to the lesson in question. Thanks!