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
, 12 years ago→compound conditionals: and and or
imported>Jesstess |
imported>Jesstess |
||
Line 628:
print "Can I interest you in some choice gouda?"
</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>====
|