Decision Structures
Learning Goals
Preparation for class:
If statements are associated with making decisions based on conditions, so they will sometimes be called conditional tests. Some books include if
statements in a catch-all control structures section which also includes loops. Regardless of what they are called, the code is all about if
, else
adn elif
. This also brings up the topic of Boolean Expressions. For this week just focus on Reading from Python Crash Course.
- Look over the
if
elif
andelse
code samples here - Get the gist of list basics at Google Developers
- Read over chapter 5: if Statements in Python Crash Course (refers to lists, but we only need to cover list basics for now)
- Watch Git Tutorial for Dummies, 19:24 mins