Boston Python Workshop 7/Friday/Tutorial: Difference between revisions

imported>Jesstess
imported>Jesstess
Line 541:
====more choices: <code>if</code> and <code>else</code>====
 
You can use the <code>else</code> keyword to execute code when the <code>if</code> expression isn't True. Try this:
 
<pre>
Anonymous user