title: How can I put multiple statements in one line?
body: <p>I know a little bit of comprehensions in Python, but they seem very hard to 'read'. The way I see it, a comprehension might accomplish the same as the following code:</p>
  <pre><code>for i in range(10): if i == 9: print('i equals 9')
  </code></pre>
  <p>This code is much easier to read than how comprehensions currently work, but I've noticed you can’t have two <code>:</code>s in one line. This brings me to:</p>
  <p>Is there a way I can get the following example into <em>one line</em>?</p>
  <pre><code>try:
      if sam[0] != 'harry':
          print('hello',  sam)
  except:
      pass
  </code></pre>
  <p>Something like this would be great:</p>
  <pre><code>try: if sam[0] != 'harry': print('hellp',  sam)
  except:pass
  </code></pre>
  <p>But again I encounter the conflicting <code>:</code>s.</p>
  <p>I'd also love to know if there's a way to run <code>try</code> (or something like it) without <code>except</code>. It seems entirely pointless that I need to put <code>except:pass</code> in there. It’s a wasted line.</p>