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
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)
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.