In This Chapter
Using the if statement to make simple decisions
Performing more advanced decision making with the if...else statement
Creating multiple decision levels by nesting statements
The ability to make a decision, to take one path or another, is an essential element of performing useful work. Math gives the computer the capability to obtain useful information. Decisions make it possible to do something with the information after it’s obtained. Without the capability to make decisions, a computer would be useless. So any language you use will include the capability to make decisions in some manner. This chapter explores the techniques that Python uses to make decisions.