title: abbreviating a double comparison in python
body: <p>Is there a way to abbreviate a comparison statement in python so that I don't have to write the whole thing out again? For example, instead of :</p>
  
  <pre><code>a=3
  if a==3 or a==2:
      print "hello world"
  </code></pre>
  
  <p>could I do something like:
      if a==(3 or 2):
          print "hello world"</p>
  
  <p>I know the above example won't work but is there another way i can achieve the desired effect?</p>