Why is this a unidentified identation error 8/15

'def anti_vowel(text):
  for x in text:
  	if x in "aeiouAEIOU":
      return " ",
      return x

IndentationError: unindent does not match any outer indentation level


Hi @blogcoder18203,

Did you use a mixture of tabs and spaces for indentation on this line or on any other line? …

  	if x in "aeiouAEIOU":

On that line, it appears to consist of two spaces followed by a tab. Mixing spaces and tabs for indentation causes problems.

Redo the indentation, using only spaces.

There will be additional debugging to do here.


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