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#



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


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