def anti_vowel(text): for i in range (0, len(text)): if text[i] in "aeiouAEIOU": text[i]="" return text
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
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.