unindent does not match any outer indentation level Coursera assignment
<p>Hi guys i just started with Python (3.5) trying to complete an assignment on Coursera  and i keep getting the above error </p>

<pre><code>Age = 15
if Age &gt;=15 :
    print ("Highschool")
   else if
       print ("No HighSchool")
</code></pre>

<p>Python, unlike many programming languages, relies on indentation to dictate scope. In particular, it permits tabs or certain number of spaces to indicate scope. Contiguous lines with the same indentation level are all in the same scope.</p>

<p>Your code:</p>

<pre><code>Age = 15
if Age &gt;=15 :
    print ("Highschool")
   else if
       print ("No HighSchool")
</code></pre>

<p>Has indentation that is uneven, which confuses the python interpreter. You seem to be using 4 spaces to indicate indentation, but your <code>else if</code> statement (should  be <code>else:</code> by the way) is not at any indentation level that  makes sense. You use 3 spaces before the <code>else if</code> statement. You should actually be using 0 spaces, as it is operating at the same scope/level of the <code>if</code> statement.</p>

<pre><code>Age = 15
if Age &gt;=15 :
    print ("Highschool")
else:
    print ("No HighSchool")
</code></pre>

<p>Read more about Python's whitespace <a href="http://www.secnetix.de/olli/Python/block_indentation.hawk" rel="nofollow">here</a>.</p>

python python-3.x