if, else, and elif Statements

  • Irv Kalb


All the code that we have looked at so far has essentially been linear. That is, execution of the code starts from the top and goes straight through to the bottom. The only change to this linear nature of execution is when we make a function call. This transfers control to the function, but all the code inside a function also goes straight through from top to bottom. But one of the most powerful things about code is the ability to make a decision and to take a path based on that decision.


Logical Operator Elif Statement Truth Table Boolean Variable Boolean Expression 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.

Copyright information

© Irv Kalb 2016

Authors and Affiliations

  • Irv Kalb
    • 1
  1. 1.Mountain ViewUSA

Personalised recommendations