title: Is it ever okay to format any part of the contents of an 'if' statement on the same line as the if statement itself?
body: <p>I'm doing some practice exercises for beginner Python, and I'm trying to nail down correct formatting, how to make your code clean and fast, and other stuff like that.</p>
  
  <p>One thing I'm unsure of is <code>if</code> statements.</p>
  
  <p>Here's how I usually do <code>if</code> statements:</p>
  
  <pre><code>if something:
      do (something)
  </code></pre>
  
  <p>But I've seen people do this:</p>
  
  <pre><code>if something:  do (something)
  </code></pre>
  
  <p>I've even seen this:</p>
  
  <pre><code>if something:  do (something)
      then do (something else)
  </code></pre>
  
  <p>I've also seen people do it with nested <code>if</code> statements, where each and every <code>if</code>/<code>elif</code>/<code>else</code> had the first line of code on the same line as the if/elif/else themselves.</p>
  
  <p>Is it ever okay / proper form to do any of these other methods?</p>