Anonymous user
Boston Python Workshop 7/Friday/Tutorial: Difference between revisions
Boston Python Workshop 7/Friday/Tutorial (view source)
Revision as of 18:40, 2 November 2012
, 11 years ago→even more choices: elif
imported>Jesstess |
imported>Jesstess |
||
Line 628:
<b>Remember that '=' is for assignment and '==' is for comparison.</b>
====In summary: the structure of if/elif/else====
Here's a diagram of <code>if/elif/else</code>:
[[File:If-elif-else.png]]
Do you understand the difference between elif and else? When do you indent? When do you use a colon? If you're not sure, talk about it with a neighbor or staff member.
==Writing Functions==
|