Anti_vowels


#1

How to delete char from the string.

def anti_vowel(text):
    vowels = "aeiouAEIOU"
    for char in text:
        if char == vowels:
            #how to delete char from string#

Thanks


#2

i wouldn't remove from string, its tricky, instead, go for the opposite approach, append consonants to new list/string


#3

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