PyCharm 2017.1 throws the warning `` Expected type 'int', instead 'float' 'compares the string using three float values

In PyCharm 2017.1, the following code throws an Expected type 'int', got 'float' instead

on warning maximum

; what am I doing wrong?

        minimum = 1.0
        value = 2.0
        maximum = 3.0
        if minimum <= value <= maximum:
            pass

      

+3


source to share





All Articles