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


my code:

def anti_vowel(text):
    for c in list(text):
        if c==list('aeiouAEIOU'):
    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!".


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