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

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>====
Anonymous user