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

imported>Jesstess
imported>Jesstess
Line 619:
====even more choices: <code>elif</code>====
 
If you haveneed to execute code conditional based on more than two cases, you can use the <code>elif</code> keyword to check more cases. You can have as many <code>elif</code> cases as you want; Python will go down the code checking each <code>elif</code> until it finds a True condition or reaches the default <code>else</code> block.
 
<pre>
Anonymous user