Refresh Your Home For Fall
Buy New
To see product details, add this item to your cart.
Ships from: Amazon
Sold by: JP-Academics
To see product details, add this item to your cart. You can always remove it later.
Ships from
Amazon
Amazon
Ships from
Amazon
Returns
30-day refund / replacement
30-day refund / replacement
This item can be returned in its original condition for a full refund or replacement within 30 days of receipt.
Read full return policy
Payment
Secure transaction
Your transaction is secure
We work hard to protect your security and privacy. Our payment security system encrypts your information during transmission. We don’t share your credit card details with third-party sellers, and we don’t sell your information to others. Learn more
Gift options
Available at checkout
Available at checkout This item is a gift. Change
At checkout, you can add a custom message, a gift receipt for easy returns and have the item gift-wrapped
To see product details, add this item to your cart. You can always remove it later.
FREE Returns
All pages and cover are intact. Has noticeable or very minor nicks or flaws. Spine has minimal signs of creasing. 100% money back guaranteed. Ships directly from Amazon! All pages and cover are intact. Has noticeable or very minor nicks or flaws. Spine has minimal signs of creasing. 100% money back guaranteed. Ships directly from Amazon! See less
Access codes and supplements are not guaranteed with used items.
Added to

Sorry, there was a problem.

There was an error retrieving your Wish Lists. Please try again.

Sorry, there was a problem.

List unavailable.
Kindle app logo image

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.

QR code to download the Kindle App

  • Modern Python Cookbook: 130+ updated recipes for modern Python 3.12 with new techniques and tools
  • Modern Python Cookbook
  • VIDEO

Follow the author

Get new release updates & improved recommendations
Something went wrong. Please try your request again later.

Modern Python Cookbook: 130+ updated recipes for modern Python 3.12 with new techniques and tools

4.5 out of 5 stars (33)

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

  1. Numbers, Strings, and Tuples
  2. Statements and Syntax
  3. Function Definitions
  4. Built-In Data Structures Part 1: Lists and Sets
  5. Built-In Data Structures Part 2: Dictionaries
  6. User Inputs and Outputs
  7. Basics of Classes and Objects
  8. More Advanced Class Design
  9. Functional Programming Features
  10. Type Matching and Annotations
  11. Input/Output, Physical Format, and Logical Layout
  12. Graphics and Visualization with Jupyter Lab
  13. Application Integration: Configuration
  14. Application Integration: Combination
  15. Testing
  16. Dependencies and Virtual Environments
  17. Documentation and Style

Frequently bought together

This item: Modern Python Cookbook: 130+ updated recipes for modern Python 3.12 with new techniques and tools
$42.79
Get it as soon as Monday, Sep 21
Only 20 left in stock - order soon.
Sold by JP-Academics and ships from Amazon Fulfillment.
+
$27.53
Get it as soon as Saturday, Sep 19
In Stock
Ships from and sold by Amazon.com.
+
$29.55
Get it as soon as Monday, Sep 21
In Stock
Ships from and sold by Amazon.com.
Total price: $00
To see our price, add these items to your cart.
Details
Added to Cart
Some of these items ship sooner than the others.
Choose items to buy together.

Customers also bought or read

Loading...

From the Publisher

jupyter python
python

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.

python book

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.

packt

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.

python book

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)
  • Customer Reviews:
    4.5 out of 5 stars (33)

About the author

Follow authors to get new release updates, plus improved recommendations.
Steven F. Lott
Brief content visible, double tap to read full content.
Full content visible, double tap to read brief content.

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.