8. Anti Vowel. Easier way to do it?


#1

This works, but there's got to be an easier/more elegant way to do it.
I also just realized I didn't need the for loop....


#2

well you can shorten the code.
Instead of looping through the text,you can loop through your possible vowels like this

for char in "aeiouAEIOU":

then you can write

text = text.replace(char, "")

at each step of the iteration then you can finally return the text