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 type one statement at a time. The <code>while</code> loop considered one with the loop itself, and since the loop is a code block everything in it is okay.</p>

<p>The <code>print</code> at the end however is a new command. You have to run the <code>while</code> loop first and type the <code>print</code> after in the interpreter.</p>

python indentation