Python - Indentation error while using IDLE and if - else block, works fine on command line
<p>I get the following indentation error</p>

<pre><code>&gt;&gt;&gt; number = 35
&gt;&gt;&gt; if number == 35:
        print 'true'
    else:

  File "&lt;pyshell#130&gt;", line 3
    else:

^
IndentationError: unindent does not match any outer indentation level
&gt;&gt;&gt; 
</code></pre>

<p>This happens only on IDLE and not on command line. I am using Python 2.6.4 on Windows XP.
I have searched online, but not been able to find any answer as to why I get this error. Thankful for any help.</p>

<p>And to add - The code may not look properly indented when copied and pasted. But it was properly indented on the IDLE interface.</p>
