SyntaxError: multiple statement found while compiling a single statement : <pre><code>&gt;&gt;&gt; import sys
def prime(n):
    i=2
    isp=True;
    while(i&lt;n):
        if(n%i==0):
            isp=False
            break
        n/=i
        i+=1
    if(n==1):
        isp=False
    return isp

while(True)
    x=input("num=")
    if x=="exit"
        sys.exit()
    print(prime(int(x))))

SyntaxError: multiple statements found while compiling a single statement
</code></pre>

<p>Why this code always <strong>"SyntaxError: multiple statements found while compiling a single statement"</strong><br>
<em>in python 3.5.2</em></p>
