Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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