def remove_vowels(input_string): vowels = ['a', 'e', 'i', 'o', 'u', 'A', 'E', 'I', 'O', 'U'] new_string = '' for char in input_string: if char not in vowels: new_string += char print(new_string) remove_vowels(input('Enter a string: '))
solo
def remove_vowels(input_string): vowels = ['a', 'e', 'i', 'o', 'u', 'A', 'E', 'I', 'O', 'U'] new_string = '' for char in input_string: if char not in vowels: new_string += char print(new_string) remove_vowels(input('Enter a string: '))
Leave feedback in the comments!
Log in or sign up for Devpost to join the conversation.