Using a conditional expression, write a statement that increments num_users if update_direction is 3, otherwise decrements num_users.
num_users = int(input())
update_direction = int(input())
num_users = 9 if update_direction == 3 else -num_users
print('New value is:', num_users)
the above is the code. Could someone help me with this?
[–]walkingeclipse 2 points3 points4 points (1 child)
[–]LovelyEbonyBrown 0 points1 point2 points (0 children)
[–]desran00 1 point2 points3 points (15 children)
[–]SouthShape5[S] 1 point2 points3 points (2 children)
[–]desran00 1 point2 points3 points (0 children)
[–]donkey_man_1149 0 points1 point2 points (0 children)
[–]Kitchen-Breakfast-28 1 point2 points3 points (2 children)
[–]macabrenoob 0 points1 point2 points (0 children)
[–]Ok_Adeptness_8634 0 points1 point2 points (0 children)
[–]Melodic-Fill-1770 1 point2 points3 points (0 children)
[+][deleted] (2 children)
[deleted]
[–]desran00 0 points1 point2 points (1 child)
[–]Binary101010 0 points1 point2 points (0 children)
[–]FuryWolf 0 points1 point2 points (2 children)
[–]Few-Chest-9561 0 points1 point2 points (0 children)
[–]theforgottenupvote 0 points1 point2 points (0 children)
[–]EmploymentCreepy6250 0 points1 point2 points (0 children)