How to kill while loop?
<p>For example, I have code:</p>

<pre><code>while (1):
    bla-bla-bal
    time.sleep(10)
</code></pre>

<p>How to change this code, for kill this loop  ( NOT KILL -9 ) or Keyboard interrrupt ( Ctrl-C ) ?</p>
