#!/usr/bin/env python # coding: utf-8 # # Chapter 3: Conditionals & Exceptions (TL;DR) # - **boolean expressions** evaluate to either `True` or `False` # - **relational operators** (e.g., `==` or `!=`) compare operands according to "human" interpretations # - **logical operators** (e.g., `and` )combine boolean sub-expressions to more "complex" expressions # - the **conditional statement** (i.e., the `if` statement) allows **controlling** the **flow of execution** depending on some **conditions** # - a **conditional expression** is a short form of a conditional statement # - **exception handling** is also a common way of **controlling** the **flow of execution**, in particular, if we have to be prepared for bad input data