title: Logical mistake in this code?
body: <p>The code is simple and you will be able to tell what it does once you see it.</p>
  
  <pre><code>n = int(input())
  if(n%2!=0):
      print 'Weird'
  elif(n%2==0):
      if(n&gt;=2 &amp; n&lt;=5):
          print 'Not Weird'
      elif(n&gt;=6 &amp; n&lt;=20):
          print 'Weird'
      elif(n&gt;20):
          print 'Not Weird'
  </code></pre>
  
  <p>It works fine, but it shows errors for 2 cases only. When input is <code>18</code>, its says <code>'Not Weird'</code> whereas the output should be <code>'Weird'</code>. The same thing is happening when the input is <code>20</code>.
  Its probably a silly mistake or something but I just can't seem to put my finger on it and I need someone to have a look at it. </p>