How to put multiple  statements in one line?
<p>I wasn't sure under what title to ponder this question exactly, coding golf seems appropriate if a bit unspecific.</p>

<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 cant have two ':' in one line ... this brings me too...</p>

<h1><strong>my question:</strong></h1>

<p>Is there any way I can get the following example into ONE LINE.</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 ':'
I'd also love to know if there's a way to run <strong>try</strong> (or something like it) without except, it seems entirely pointless that I need to put except:pass in there. its a wasted line.</p>

<p>Thank you for you input ... and here have a smiley <strong>:D</strong></p>
