title: Error in my Python code: elseif error in Python
body: <p>below code is not working</p>
  
  <pre><code>N = int(input())
  print("Enter number",N)
   if(N%2!=0):
   print("Weird")
    elif (N%2==0) and (N&gt;=2 and N&lt;=5):
        print("Not Weird")
        elif(N%2==0) and (N&gt;=6 and N&lt;=20):
            print("Weird")
           else:
           print("Not Weird")
  </code></pre>
  
  <p>I am getting below error:</p>
  
  <pre><code>File "solution.py", line 7
  elif (N%2==0) and (N&gt;=2 and N&lt;=5):
     ^
  SyntaxError: invalid syntax
  </code></pre>