Write a function that strips every vowel from a string provided


Topic: Write a function that strips every vowel from a string provided

Solution

def strip_vowels(input_str:str)->str:
    vowels = ['a', 'e', 'i', 'o', 'u', 'A', 'E', 'I', 'O', 'U' ]
    return ''.join(list(filter(lambda x: x not in vowels, input_str)))



List all Python Programs