Answers for "python program to remove vowels from a string"

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 "python program to remove vowels from a string"

Python Answers by Framework

Browse Popular Code Answers by Language