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

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