Go to main content
Formats
Format
BibTeX
MARCXML
TextMARC
MARC
DublinCore
EndNote
NLM
RefWorks
RIS
Cite
Citation

Linked e-resources

Details

Intro
Table of Contents
About the Author
About the Technical Reviewer
Acknowledgments
Introduction
Chapter 1: Expression: How to Compute
Expressions with Additional Types
Boolean Type in an Expression
String Type in an Expression
Expressions with Conditional Operators
Floating-Point Number Type in an Expression
Complex Number Type in an Expression
Variable Names
Statements
Deletion of a Variable Name
Additional Language Constructs
Statements and Expressions in Practice
Advanced Details
Names
Keywords and Special Names
Literals

Characters with Special Meaning
Python Standards
Object Diagram Notation
Key Takeaways
Chapter 2: The Function: Programs as a Series of Statements
Calling a Function
Side Effects of Functions
Function Arguments
Defining a Function
Keyword Arguments
Visibility of Names
Functions as Parameters
Definitions of Nested Functions
Functions in Practice
Advanced Details
Namespace and Scope
Positional-Only and Keyword-Only Parameters
Variable Number of Arguments
Lambda Expression
Decorator
Yield Statement and Asynchronous Functions

Key Takeaways
Chapter 3: The Class: How to Model the World
What Is a Class?
Creating Objects
Using Instance Variables and Methods
Defining Classes
Relationships Among Classes
Properties
Inheritance
Nested Classes
Special Methods
Classes in Practice
Advanced Details
Class Variables, Class Methods, and Static Methods
Abstract Base Classes
Immutable Objects and Data Classes
Methods of Identifying Classes
Class Diagrams
Key Takeaways
Chapter 4: The Control Structure: How to Describe the Workflow
if Statement
match Statement

While Statement
for Statement
Exception Handling
Context Management
Recursion
Loops in Practice
Advanced Details
Matching Classes and Other Kinds of Patterns
Exception Classes
Context Manager Classes
Evaluating Strings
Activity Diagram
Key Takeaways
Chapter 5: The Sequence: From Data to the Data Structure
Lists and Their Operations
Processing of a List
Tuples
Dictionaries
Sets
Copying Sequences
Sequences in Practice
Advanced Details
Iterable Objects
Deep Copy of Data Structures
Generator Functions and Coroutines

Functional-Style Manipulation of Lists
Multiplicity of Class Diagram Connections
Sequence Diagram
Key Takeaways
Chapter 6: The Module: Organization of Program Parts into a Unit
Built-in Modules
Defining Modules
Packages
Future Package
Package Management
Useful Third-Party Packages
Modules in Practice
Advanced Concepts
Structure of Python Projects
Virtual Environments
Tools for Testing
Tools for Static Analysis
Tools for Formatting
Preparation of Documentation
Key Takeaways
Appendix A: Binary Representation
Appendix B: Type Annotations

Browse Subjects

Show more subjects...

Statistics

from
to
Export