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

Content added Content deleted
imported>Jesstess
imported>Jesstess
Line 587: Line 587:
</pre>
</pre>


Like with <code>if</code>, the code block under the <code>else</code> statement must be indented.
Like with <code>if</code>, the code block under the <code>else</code> statement must be indented so Python knows that it is a part of the <code>else</code> block.


====compound conditionals: <code>and</code> and <code>or</code>====
====compound conditionals: <code>and</code> and <code>or</code>====