title: PyCharm: “Simplify Chained Comparison”
body: <p>I have two integer value <code>cnt_1</code> and <code>cnt_2</code>, and I write the following statements:</p>
  
  <pre><code>if cnt_1 &lt; 0 and cnt_2 &gt;= 0:
      # some code
  </code></pre>
  
  <p>This statement gets underlined, and the tooltip tells me that I must:</p>
  
  <blockquote>
    <p>simplify chained comparison</p>
  </blockquote>
  
  <p>As far as I can tell, that comparison is about as simple as they come. What have I missed here?</p>
  
  <p>The question is a little different from <a href="https://stackoverflow.com/questions/26502775/pycharm-simplify-chained-comparison">link</a>, there are different variables in comparison.</p>