Chapter 5 ยท Part I: Basics
if Statements
Book: Ch. 5, 'if Statements', pp. 71โ90
Pages this chapter covers
- A Simple Examplep. 72
- Conditional Testsp. 72
- Checking for Equalityp. 72
- Ignoring Case When Checking for Equalityp. 73
- Checking for Inequalityp. 74
- Numerical Comparisonsp. 74
- Checking Multiple Conditionsp. 75
- Checking Whether a Value Is in a Listp. 76
- Checking Whether a Value Is Not in a Listp. 76
- Boolean Expressionsp. 77
- if Statementsp. 78
- Simple if Statementsp. 78
- if-else Statementsp. 79
- The if-elif-else Chainp. 80
- Using Multiple elif Blocksp. 81
- Omitting the else Blockp. 82
- Testing Multiple Conditionsp. 82
- Using if Statements with Listsp. 85
- Checking for Special Itemsp. 85
- Checking That a List Is Not Emptyp. 86
- Using Multiple Listsp. 87
- Styling Your if Statementsp. 89
- Summaryp. 89
Notes
Notes are not written yet
The section list above is only a map of the book, with printed page numbers, so you can read the chapter and come back. Original notes for this chapter are still to come.
No exercise yet
An original, auto-checked exercise for this chapter is not in this version.
No quiz yet
A proficiency quiz for this chapter is not in this version.