Swipe to navigate through the chapters of this book
All the code 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. Doing that 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.
Please log in to get access to this content
To get access to this content you need the following product:
- if, else, and elif Statements
- Sequence number
- Chapter number
- Chapter 5