Answer:
num_users = num_users + 1 if update_direction == 1 else num_users - 1
Explanation:
This is going to give you the +1 or -1 depending on what the update_direction is = to. If you have a different direction then just make it -= to that.
3.3m questions
4.1m answers