title: Python: Invalid Syntax erroe
body: <p>I am a beginner in python and I am learning it. However, the code I have produced below is giving me errors like (invalid syntax). I think that the ValueError line is the problem. Can someone please fix this for me as its very frustrating. Thanks</p>
  
  <pre><code>def get_integer():
      while True:
          try:
              seven_integer = int(input("Please enter a seven digit integer: "))
              except ValueError:
                           print("Please enter a seven digit integer")
      continue
  if 1000000 &lt;= seven_integer
  &lt;= 9999999:
      return seven_integer
  </code></pre>