title: Are one-line 'if'/'for'-statements good Python style?
body: <p>Every so often on here I see someone's code and what looks to be a 'one-liner', that being a one line statement that performs in the standard way a traditional 'if' statement or 'for' loop works.</p>
  
  <p>I've googled around and can't really find what kind of ones you can perform? Can anyone advise and preferably give some examples?</p>
  
  <p>For example, could I do this in one line:</p>
  
  <pre><code>example = "example"
  if "exam" in example:
      print "yes!"
  </code></pre>
  
  <p>Or:</p>
  
  <pre><code>for a in someList:
      list.append(splitColon.split(a))
  </code></pre>