Consider a following snippet:
a = 0 if a == 0 or a > 0: print(a)
Essentially, I want to do something when a is not nega
a
Instead of a == 0 or a > 0 you could just use a >= 0.
a == 0 or a > 0
a >= 0
https://docs.python.org/library/stdtypes.html#comparisons