Anti-vowel


#1



def anti_vowel(text):
    for i in range (0, len(text)):
        if text[i] in "aeiouAEIOU":
            text[i]=""
    return text


#2

here:

text[i]=""

strings are immutable, so you can't assign it a value. If you want to do this, you will first need to convert text to list


#3

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