title: Getting a syntax error on a while loop
body: <p>I keep getting a syntax error on the while loop, and I'm not understanding why.</p>
  
  <pre><code>def main():
      n=1
      i=1
      flag=True
      num1=eval(input("Enter number")
      while i&lt;9:
          n=n+1
          num2=eval(input("Enter number", n))
          r=r+1
          if num2&lt;num1:
              flag=False
          num1=num2
      if flag==True:
          print("yes")
      else:
          print("no")
  main()
  </code></pre>