I am getting trouble in the exercise, I need help!
so the exercise is to remove from a string all the vowel.
that’s what I tried to do:
def anti_vowel(text): result =  for char in text: result.append(char) vowel = ["a", "e", "i", "o", "u"] for i in result: for w in vowel: while i != w: total = "" total_word = total + i return total_word print anti_vowel("Hey look Words!")
As you can see, I tried to make the string into a list of characters and then I made a list with all the vowels and tried to compare it with it.
I saw on the internet other ways to do it and I tried to this my way.
Can my way work? What is the problem with it? can you explain a different way?