Is there an operation for not less than or not greater than in python?

Instead of a == 0 or a > 0 you could just use a >= 0.

https://docs.python.org/library/stdtypes.html#comparisons

Leave a Comment