title: what is PyCharm "simplify chained comparison"
body: <p>I have the following function, and PyCharm is alerting me on the <code>elif</code> statements about "simplify chained comparison". The code works and I am getting the object I want, just wondering about the warning and how I can make it better?</p>
  
  <pre><code>     def preferred_contacts(self):
           x = random.randint(0, 100)
           email = u'E'
           text = u'M'
           phone = u'P'
           letter = u'L'
           none = u'N'
  
           if x &lt; 25:
              return email
           elif x &gt;= 26 and x &lt;= 50:
              return text
           elif x &gt;= 51 and x &lt;= 75:
              return phone
           elif x &gt;= 76 and x &lt;= 100:
              return letter
           else:
              return none
  </code></pre>