Python

Jeffrey Dickerson
Jeffrey Dickerson
4,916 Points

Disemvowel challenge completed...but

def multiple(word):
    vowel = ['a','e','i','o','u','A','E','I','O','U']
    words = ''.join([x for x in word if x not in vowel])

    return words

So I have completed this challenge but I am not a fan of typing both upper and lower case vowels in the vowel list. Does anyone know of a better way to do this?

1 Answer

jassim Al-Hatem
jassim Al-Hatem
1,034 Points

you can use:

.lower() .upper()