Files
openide/python/testData/intentions/PyInvertIfConditionIntentionTest/conditionMultiple.py
Aleksei Kniazev d18717b0ec PY-15046: fixed tests location
GitOrigin-RevId: 89137463dee2d6a3862b80c98e5a173639c1defe
2020-10-19 15:47:28 +00:00

8 lines
259 B
Python

value = 1
absent_values = [1, 2]
present_values = [3, 4]
<caret>if value is not None and value >= 1 and value <= 100 or value == 50 and value not in absent_values or value in present_values:
print("In range 1..100")
else:
print("Not in range 1..100")