Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #remove #vowels #string #python
ADD COMMENT
Topic
Name
9+9 =