title: Putting a simple if-then-else statement on one line
body: <p>I'm just getting into Python and I really like the terseness of the syntax. However, is there an easier way of writing an <code>if</code>-<code>then</code>-<code>else</code> statement so it fits on one line?</p>
  
  <p>For example:</p>
  
  <pre><code>if count == N:
      count = 0
  else:
      count = N + 1
  </code></pre>
  
  <p>Is there a simpler way of writing this? I mean, in Objective-C I would write this as:</p>
  
  <pre><code>count = count == N ? 0 : count + 1;
  </code></pre>
  
  <p>Is there something similar for Python?</p>
  
  <p><strong>Update</strong></p>
  
  <p>I know that in this instance I can use <code>count == (count + 1) % N</code>. </p>
  
  <p>I'm asking about the general syntax.</p>