<Below this line, add a link to the EXACT exercise that you are stuck at.>
<In what way does your code behave incorrectly? Include ALL error messages.>
when i ==v and he is removed the next item take his place and the process go to the next step : compare the next “Box” of the tab. So the (i+1)-th item placed in the i-th Box is ignored.
I try to use a “while” instead of “if” but i get anothers issues so i came back to “if” for the moment
<What do you expect to happen instead?>
i want the (i+1)-th item placed in the i-th Box after the i-th item was remove to be compared before moving on to the next analysis of the next Box
def join_strings(tab): #function for concatenate c in tab2 result = "" for c in tab: result += c return result def anti_vowel(text): vowel = ['a', 'A', 'e', 'E', 'i', 'I', 'o', 'O', 'u', 'U'] tab =  for c in text: tab.append(c) print tab, ": tab input" #Work well for v in vowel: print " " print v, ": the vowel compared" for i in tab: print "-",i, "is compared to", v if i == v: tab.remove(i) print " ->", i, "is removed" print tab, ": tab output" #mistake in the tab due to .remove() return join_strings(tab) print anti_vowel("aAaaAaaaAGGWP")
print : aaAGGWP (i know why a, a and A was print, but is an another story to not print them) x)