Python does not have a unary numeric incrementation operator. +4
simply means 'apply the +
operator to 4
'. The unary +
operator returns it's numeric value unchanged:
>>> +4
4
It exists to mirror the unary -
operator, which returns the value negated:
>>> -4
-4
It does not mean 'add 1 to 4'.
If instead you meant to test for greater than or equality, then do so:
>>> 4 >= 4
True
>
only means 'greater than' and clearly, 4 is not greater than 4.