Buy New
-
To see product details, add this item to your cart.
Ships from: Amazon Sold by: JP-Academics
Used - Very Good
-
To see product details, add this item to your cart.
FREE Returns
Return this item for free
We offer easy, convenient returns with at least one free return option: no shipping charges. All returns must comply with our returns policy.
Learn more about free returns. How to return the item? - Go to your orders and start the return
- Select your preferred free shipping option
- Drop off and leave!
Ships from: Amazon Sold by: TGDBooks
Return this item for free
We offer easy, convenient returns with at least one free return option: no shipping charges. All returns must comply with our returns policy.
Learn more about free returns.- Go to your orders and start the return
- Select your preferred free shipping option
- Drop off and leave!
Download the free Kindle app and start reading Kindle books instantly on your smartphone, tablet, or computer - no Kindle device required.
Read instantly on your browser with Kindle for Web.
Using your mobile phone camera - scan the code below and download the Kindle app.
Follow the author
OK
Modern Python Cookbook: 130+ updated recipes for modern Python 3.12 with new techniques and tools
Purchase options and add-ons
Enhance your Python skills with the third edition of Modern Python Cookbook with 130+ new and updated recipes covering Python 3.12, including new coverage on graphics, visualizations, dependencies, virtual environments, and more.
Purchase of the print or Kindle book includes a free eBook in PDF format
Key Features
- New chapters on type matching, data visualization, dependency management, and more
- Comprehensive coverage of Python 3.12 with updated recipes and techniques
- Provides practical examples and detailed explanations to solve real-world problems efficiently
Book Description
Python is the go-to language for developers, engineers, data scientists, and hobbyists worldwide. Known for its versatility, Python can efficiently power applications, offering remarkable speed, safety, and scalability. This book distills Python into a collection of straightforward recipes, providing insights into specific language features within various contexts, making it an indispensable resource for mastering Python and using it to handle real-world use cases.
The third edition of Modern Python Cookbook provides an in-depth look into Python 3.12, offering more than 140 new and updated recipes that cater to both beginners and experienced developers. This edition introduces new chapters on documentation and style, data visualization with Matplotlib and Pyplot, and advanced dependency management techniques using tools like Poetry and Anaconda. With practical examples and detailed explanations, this cookbook helps developers solve real-world problems, optimize their code, and get up to date with the latest Python features.
What you will learn
- Master core Python data structures, algorithms, and design patterns
- Implement object-oriented designs and functional programming features
- Use type matching and annotations to make more expressive programs
- Create useful data visualizations with Matplotlib and Pyplot
- Manage project dependencies and virtual environments effectively
- Follow best practices for code style and testing
- Create clear and trustworthy documentation for your projects
Who this book is for
This Python book is for web developers, programmers, enterprise programmers, engineers, and big data scientists. If you are a beginner, this book offers helpful details and design patterns for learning Python. If you are experienced, it will expand your knowledge base. Fundamental knowledge of Python programming and basic programming principles will be helpful
Table of Contents
- Numbers, Strings, and Tuples
- Statements and Syntax
- Function Definitions
- Built-In Data Structures Part 1: Lists and Sets
- Built-In Data Structures Part 2: Dictionaries
- User Inputs and Outputs
- Basics of Classes and Objects
- More Advanced Class Design
- Functional Programming Features
- Type Matching and Annotations
- Input/Output, Physical Format, and Logical Layout
- Graphics and Visualization with Jupyter Lab
- Application Integration: Configuration
- Application Integration: Combination
- Testing
- Dependencies and Virtual Environments
- Documentation and Style
- ISBN-101835466389
- ISBN-13978-1835466384
- Edition3rd ed.
- PublisherPackt Publishing
- Publication dateJuly 31, 2024
- LanguageEnglish
- Dimensions7.5 x 1.85 x 9.25 inches
- Print length818 pages
Frequently bought together

Customers who viewed this item also viewed
- Python Crash Course, 3rd Edition: A Hands-On, Project-Based Introduction to ProgrammingPaperbackFREE Shipping on orders over $35 shipped by AmazonGet it as soon as Saturday, Sep 19
- Fluent Python: Clear, Concise, and Effective ProgrammingPaperbackFREE Shipping by AmazonGet it as soon as Saturday, Sep 19
- Python Programming Language: a QuickStudy Laminated Reference GuidePamphletFREE Shipping on orders over $35 shipped by AmazonGet it as soon as Saturday, Sep 19
- Pandas Cookbook: Practical recipes for scientific computing, time series, and exploratory data analysis using PythonPaperbackFREE Shipping by AmazonGet it as soon as Monday, Sep 21
- Learn Python Programming: A comprehensive, up-to-date, and definitive guide to learning PythonPaperbackFREE Shipping on orders over $35 shipped by AmazonGet it as soon as Monday, Sep 21
Customers also bought or read
- Python Machine Learning By Example: Unlock machine learning best practices with real-world use cases
Paperback$29.55$29.55Delivery Mon, Sep 21 - Pandas Cookbook: Practical recipes for scientific computing, time series, and exploratory data analysis using Python
Paperback$39.99$39.99FREE delivery Mon, Sep 21 - Fluent Python: Clear, Concise, and Effective Programming
Paperback$43.99$43.99FREE delivery Sat, Sep 19 - Machine Learning with PyTorch and Scikit-Learn: Develop machine learning and deep learning models with Python#1 Best SellerSpeech & Audio Processing
Paperback$36.05$36.05FREE delivery Sat, Sep 19 - Python Data Cleaning Cookbook: Prepare your data for analysis with pandas, NumPy, Matplotlib, scikit-learn, and OpenAI
Paperback$49.99$49.99FREE delivery Mon, Sep 21 - Learn Python Programming: A comprehensive, up-to-date, and definitive guide to learning Python
Paperback$31.99$31.99Delivery Mon, Sep 21 - Python 3: The Comprehensive Guide to Hands-On Python Programming (Rheinwerk Computing)
Paperback$53.79$53.79FREE delivery Sat, Sep 19 - Mathematics of Machine Learning: Master linear algebra, calculus, and probability for machine learning
Paperback$44.30$44.30FREE delivery Mon, Sep 21 - Python Pocket Reference: Python In Your Pocket (Pocket Reference (O'Reilly))
Paperback$13.09$13.09Delivery Sat, Sep 19 - Hands-On Data Structures and Algorithms with Python: Store, manipulate, and access data effectively and boost the performance of your applications, 3rd Edition
Paperback$26.99$26.99Delivery Mon, Sep 21 - Python for Algorithmic Trading Cookbook: Recipes for designing, building, and deploying algorithmic trading strategies with Python
Paperback$44.99$44.99FREE delivery Mon, Sep 21 - Python Crash Course, 3rd Edition: A Hands-On, Project-Based Introduction to Programming#1 Best SellerFunctional Software Programming
Paperback$27.53$27.53Delivery Sat, Sep 19 - Python for Finance Cookbook: Over 80 powerful recipes for effective financial data analysis, 2nd Edition
Paperback$37.98$37.98FREE delivery Mon, Sep 21 - Python Object-Oriented Programming: Build robust and maintainable object-oriented Python applications and libraries
Paperback$42.64$42.64FREE delivery Tue, Sep 22 - Python Tools for Scientists: An Introduction to Using Anaconda, JupyterLab, and Python's Scientific Libraries
Paperback$40.11$40.11FREE delivery Oct 1 - 6 - Python for Data Analysis: Data Wrangling with pandas, NumPy, and Jupyter
Paperback$43.99$43.99FREE delivery Sep 30 - Oct 16 - Powerful Python: Patterns and Strategies with Modern Python
Paperback$39.89$39.89FREE delivery Sat, Sep 19 - Mastering PyTorch: Create and deploy deep learning models from CNNs to multimodal models, LLMs, and beyond
Paperback$34.58$34.58Delivery Mon, Sep 21 - Expert Python Programming: Master Python by learning the best coding practices and advanced programming concepts, 4th Edition
Paperback$50.99$50.99FREE delivery Mon, Sep 21 - FastAPI Cookbook: Develop high-performance APIs and web applications with Python
Paperback$43.49$43.49FREE delivery Mon, Sep 21 - Python Automation Cookbook: 75 Python automation ideas for web scraping, data wrangling, and processing Excel, reports, emails, and more
Paperback$35.73$35.73FREE delivery Mon, Sep 21 - Black Hat Python, 2nd Edition: Python Programming for Hackers and Pentesters
Paperback$37.88$37.88FREE delivery Sat, Sep 19
From the Publisher
The book is split into four sections to help you easily find the recipes you need when you need them
Section one, Python Fundamentals, covers all the essential techniques you need to become an effective Python developer. You’ll explore strings and tuples and go in depth into number types so you can take on a host of advanced numerical programming problems. You’ll see how to use complex statements, type hints, and built-in data structures like lists and dictionaries, and you’ll even dip into debugging with the f-string.
Section two, Object-Oriented and Functional Design Approaches, will take you through a series of recipes for both programming paradigms. You’ll find out how to create classes and related type hints, work with objects, extend built-in classes, and manage resources with context managers. You’ll also be introduced to function definitions, immutable objects, generator expressions, how to create partial functions, and more.
Move from beginner to more advanced topics when you’re ready
Section three, More Sophisticated Designs, will help you solve more advanced Python programming problems. You’ll go deeper into type hints and look at the match statement, explore Pydantic’s uses for strict run-time type-checking, work with paths and files in a wide variety of types (including CSV, JSON, and XML), use Beautiful Soup for extracting data, Jupyter Lab and matplotlib for data analysis and visualization, see how to design larger applications by combining a number of smaller components, and learn to deal with the problems that come from doing so. As you come close to the end of the book, you’ll find recipes on handling configuration files, how to implement the command design pattern, and how you can wrap non-Python tools in Python and use that ability to your advantage by radically rethinking the UX.
Move beyond development and get ready for production
The last section, Completing a Project: Fit and Finish, will help you put everything together so that you can deliver functional and deployable applications. You’ll find recipes on testing, first using built-in solutions like doctest and unittest, and then expanding out to use the external tool pytest. You’ll also find coverage on handling dependencies and managing virtual environments. You’ll use the built-in module venv, but also explore conda, with its pre-built binaries and accessible compiler, and poetry for an all-in-one virtual environment manager and package installer. The section closes with a chapter covering documentation and style. You’ll see how to use tools for linting, to find and remove bugs, how to format your code for quality assurance, and how to use the sphinx tool – which will help you create comprehensive and readable documentation.
Editorial Reviews
About the Author
Steven Lott has been programming since computers were large, expensive, and rare. Working for decades in high tech has given him exposure to a lot of ideas and techniques, some bad, but most are helpful to others. Since the 1990s, Steven has been engaged with Python, crafting an array of indispensable tools and applications. His profound expertise has led him to contribute significantly to Packt Publishing, penning notable titles like "Mastering Object-Oriented," "The Modern Python Cookbook," and "Functional Python Programming." A self-proclaimed technomad, Steven's unconventional lifestyle sees him residing on a boat, often anchored along the vibrant east coast of the US. He tries to live by the words “Don't come home until you have a story.”
Product details
- Publisher : Packt Publishing
- Publication date : July 31, 2024
- Edition : 3rd ed.
- Language : English
- Print length : 818 pages
- ISBN-10 : 1835466389
- ISBN-13 : 978-1835466384
- Item Weight : 3.04 pounds
- Dimensions : 7.5 x 1.85 x 9.25 inches
- Best Sellers Rank: #953,130 in Books (See Top 100 in Books)
- #93 in Computer Programming Structured Design
- #776 in Python Programming
- #1,663 in Computer Programming Languages
- Customer Reviews:
About the author

Steven Lott has been writing software since computers were large, expensive, and rare. His primary focus is the Python programming language.
He’s a technomad, who spends most of the time living on a boat.




















