Stuck in *anti_vowel* plz help


#1


https://www.codecademy.com/courses/python-intermediate-en-rCQKw/1/2?curriculum_id=4f89dab3d788890003000096#

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:
                text.remove(i)
    return text


#2

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


#3

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