Indention Errors on Python IDLE
<p>I'm just following the basic's of python and have been using IDLE as I find it handy to experiment scripts in real-time. </p>

<p>While I can run this script with no issues as a file I just cannot include the last print statement in IDLE!. I have tried an indentation, 4 spaces, no indentation's.  Please explain what I'm doing wrong. </p>

<pre><code>while True:
    print ('Who are you?')
    name = input()
    if name != 'Joe':
        continue
    print('Hello, Joe. What is the password? (It is a fish.)')
    password = input()
    if password == 'swordfish':
        break
print('value')
SyntaxError: invalid syntax
</code></pre>

<p>You can't paste more than one statement at a time into IDLE. The problem has nothing to do with indentation. The <code>while</code> loop constitutes one compound statement and the final <code>print</code> another.</p>

<p>The following also has issues when you try to paste at once into IDLE:</p>

<pre><code>print('A')
print('B')
</code></pre>

<p>The fact that this has a problem shows even more clearly that the issue ins't one of indentation.</p>

python indentation