Anti_vowel


#1
def anti_vowel(text):
	string = ''
  	for i in text:
          if i not in "aeiouAEIOU":
            string+=i
  	return string

I guess the code is right, but it keeps showing this error mentioned below:
for i in text:
^
IndentationError: unindent does not match any outer indentation level

Can someone tell me why it’s going wrong?


#2

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.