Pragmatic Python programming learning Python the smart way

Explore the world of programming languages through Python and learn the building blocks of writing programs. This book covers Python 3.10, explaining it through six key concepts. Each chapter contains a real-world example with practical advice and a section on advanced concepts. You'll start by...

Descripción completa

Detalles Bibliográficos
Otros Autores: Guta, Gabor, author (author)
Formato: Libro electrónico
Idioma:Inglés
Publicado: Berkeley, CA : Apress L. P. [2022]
Materias:
Ver en Biblioteca Universitat Ramon Llull:https://discovery.url.edu/permalink/34CSUC_URL/1im36ta/alma991009674739906719
Tabla de Contenidos:
  • 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
  • Appendix C: Asynchronous Programming
  • Bibliography
  • Index.