PY3.R1716
Chained comparison
This message is emitted when we encounter boolean operation like a < b and b < c, suggesting instead to refactor it to a < b < c.
Noncompliant Code:
Copy
a = int(input())
b = int(input())
c = int(input())
if a < b and b < c:
pass
Compliant Code:
Copy
a = int(input())
b = int(input())
c = int(input())
if a < b < c:
pass