Answers for "def in python of returning true for vowels"

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

python3 vowels and consonants filter

letterList = ['a', 'b', 'c', 'd']
vowelList = []

for letter in letterList:
    if letter in 'aeiou':
        vowelList.append(letter)
Posted by: Guest on November-04-2020

Code answers related to "def in python of returning true for vowels"

Python Answers by Framework

Browse Popular Code Answers by Language