Stuck in *anti_vowel* plz help


The err message comes as str has no attribute remove

It should remove the vowels.

v = [ 'A', 'E', 'I', 'O', 'U', 'a', 'e', 'i', 'o', 'u']

def anti_vowel(text):
    for i in text:
        for t in v:
            if i == t:
    return text


remove is a bad method to solve this problem, because of index shifts.

Please append constants to a new lists, don't forget to .join() the list before returning it


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.