Enjoying the preview?
This is the free first lesson. Get full access — request a demo or sign in.
Enjoying the preview?
This is the free first lesson. Get full access — request a demo or sign in.
These lessons begin with a discussion of the Boolean data type in Python (bool) along with the valid literal values and their use in simple if statements. After two-way if/else statements are demonstrated, the equality and relational Boolean operators are presented with example code. Logical operators and expressions are demonstrated and then the lessons conclude with multi-way decision structures that involve the evaluation of a potentially unlimited number of Boolean expressions.
LEARNING OBJECTIVES:
It covers the Boolean data type in Python (bool) and its True and False literals, simple if statements, two-way if/else statements, equality and relational Boolean operators, logical operators and expressions, and multi-way decision structures using elif.
The course includes five lessons: Simple Decisions, Two-way Decisions, Equality and Relational Operators, Boolean Operators and Expressions, and Multi-way Decisions.
You will build skills in Boolean expressions, Boolean search, Boolean networks, programming concepts, programming language design, and the Python programming language.
Multi-way decision structures, which use the elif function, are needed when you must evaluate a potentially unlimited number of Boolean expressions.