
Look closely at the number of "a" in the next sentence. Why does the following code produce "CCCCCttttt" instead of "CCCCCaaaattttt"?
def anti_vowel(text):
t = ""
vowels = "aeiou"
for i in text:
for vowel in vowels:
if i==vowel:
i=""
else:
t = t+i
return t
print anti_vowel("Cat")