Boston Python Workshop 3/Friday/Tutorial: Difference between revisions
Content added Content deleted
imported>Jesstess |
imported>Jesstess |
||
Line 628: | Line 628: | ||
print "Can I interest you in some choice gouda?" |
print "Can I interest you in some choice gouda?" |
||
</pre> |
</pre> |
||
You can have as many lines of code as you want in <code>if</code> and <code>else</code> blocks; just make sure to indent them so Python knows they are a part of the block. |
|||
====even more choices: <code>elif</code>==== |
====even more choices: <code>elif</code>==== |