Using conditional expressions and incrementing/decrementing a variable
<p>How do I to put the if statement into a conditional expression and how do I increment/ decrement a variable?</p>

<pre><code>num_users = 8
update_direction = 3

num_users = 
if update_direction ==3:
   num_users= num_users + 1
else:
   num_users= num_users - 1

print('New value is:', num_users)
</code></pre>

<p>I might be way off the mark and my Python is a bit rusty, but the code looks alright for the problem provided besides the formatting issues pointed out by James K. The if statement you have forms a part of the conditional expression (it is a condition). </p>

<p>Essentially, a conditional expression follows this pattern of: </p>

<p>if(something)-->Do something</p>

<p>The incrementation looks fine. Like James K said, fix the formatting and you should be fine. </p>

python