Answers for "delete all vowels from string in python"

1

python method to filter vowels in a string

def anti_vowel(c):
    newstr = c
    vowels = ('a', 'e', 'i', 'o', 'u')
    for x in c.lower():
        if x in vowels:
            newstr = newstr.replace(x,"")

    return newstr
Posted by: Guest on November-03-2020
0

remove vowels in a string python

# removing vowels in a string
def anti_vowel(c):
    newstr = c
    vowels = ('a', 'e', 'i', 'o', 'u')
    for x in c.lower():
        if x in vowels:
            newstr = newstr.replace(x,"")

    return newstr
Posted by: Guest on April-12-2021

Code answers related to "delete all vowels from string in python"

Python Answers by Framework

Browse Popular Code Answers by Language