Anti_vowel


#1



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


#2

del is a difficult approach, because of index shift and getting out of range

use the opposition approach, add constants to list or string (you choice)


#4

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