If/else in python
<p>I know this might sound silly, but I want to know if there is a way like this to use.</p>

<p>My code is:</p>

<pre><code>print(a (+=) if a==1 else (-=) b)
</code></pre>

<p>What I want it to do is,</p>

<pre><code>if a==1:
    print(a+b) 
else:
    print(a-b)
</code></pre>