Why is this a unidentified identation error 8/15


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

https://www.codecademy.com/en/courses/learn-python/lessons/practice-makes-perfect/exercises/antivowel?action=lesson_resume&link_content_target=interstitial_undefined
IndentationError: unindent does not match any outer indentation level


#2

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.


#3

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