Statements - Execution Units

This chapter provides introductions and tutorial examples about statements. Topics include introductions to expression, assignment, 'del', 'import', 'if', 'while', 'for', 'try', 'with', and 'match' statements.

What Is Statement

"pass" Statement - Do Nothing Statement

Expression Statement - One Expression Only

"=" Statement - Assignment Statement

"del" Statement - Delete Statement

"import" Statement to Load Modules

"if" Statement for Conditional Execution

"while" Statement for Execution Loop

"for" Statement for Iterative Execution

"try" Statement to Catch Execution

"with" Statement for Context Manager

"match" Statement for Pattern Match

Takeaways:

Table of Contents

 About This Book

 Running Python Code Online

 Python on macOS Computers

 Python on Linux Computers

 Built-in Data Types

 Variables, Operations and Expressions

Statements - Execution Units

 Function Statement and Function Call

 Iterators and Generators

 List, Set and Dictionary Comprehensions

 Classes and Instances

 Modules and Module Files

 Packages and Package Directories

 "sys" and "os" Modules

 "pathlib" - Object-Oriented Filesystem Paths

 "pip" - Package Installer for Python

 SciPy.org - Python Libraries for Science

 pandas - Data Analysis and Manipulation

 Anaconda - Python Environment Manager

 Jupyter Notebook and JupyterLab

 References

 Full Version in PDF/EPUB