Anonymous user
Boston Python Workshop 3/Friday/Tutorial: Difference between revisions
Boston Python Workshop 3/Friday/Tutorial (view source)
Revision as of 02:18, 17 June 2011
, 13 years ago→even more choices: elif
imported>Jesstess |
imported>Jesstess |
||
Line 633:
====even more choices: <code>elif</code>====
If you have 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>
<pre>
|