---
product_id: 3840554
title: "Python Cookbook, Third Edition"
price: "₹ 5300"
currency: INR
in_stock: true
reviews_count: 13
url: https://www.desertcart.in/products/3840554-python-cookbook-third-edition
store_origin: IN
region: India
---

# Python Cookbook, Third Edition

**Price:** ₹ 5300
**Availability:** ✅ In Stock

## Quick Answers

- **What is this?** Python Cookbook, Third Edition
- **How much does it cost?** ₹ 5300 with free shipping
- **Is it available?** Yes, in stock and ready to ship
- **Where can I buy it?** [www.desertcart.in](https://www.desertcart.in/products/3840554-python-cookbook-third-edition)

## Best For

- Customers looking for quality international products

## Why This Product

- Free international shipping included
- Worldwide delivery with tracking
- 15-day hassle-free returns

## Description

If you need help writing programs in Python 3, or want to update older Python 2 code, this book is just the ticket. Packed with practical recipes written and tested with Python 3.3, this unique cookbook is for experienced Python programmers who want to focus on modern tools and idioms. Inside, youâ??ll find complete recipes for more than a dozen topics, covering the core Python language as well as tasks common to a wide variety of application domains. Each recipe contains code samples you can use in your projects right away, along with a discussion about how and why the solution works. Topics include: Data Structures and Algorithms Strings and Text Numbers, Dates, and Times Iterators and Generators Files and I/O Data Encoding and Processing Functions Classes and Objects Metaprogramming Modules and Packages Network and Web Programming Concurrency Utility Scripting and System Administration Testing, Debugging, and Exceptions C Extensions

Review: Treasure Trove of Python Recipes - Python Cookbook goes in depth on a variety of different Python topics. Each section is similar to a question that might be asked on Stack Overflow. The recipes range in difficulty from easy to advanced metaprogramming. One particular recipe that I liked was 9.1 on how to time a function. When I am using Python I often need to time the code, and usually I need to look up how to do it. This example created a decorator function for timing. It makes it so that you can just put @timethis on top of a function and see how long it takes to execute. I appreciated how elegant this solution was as opposed to the way I was implementing it. Most examples are self contained and all the code examples that I tried worked. Additionally, there is a GitHub that the authors created which provides all the code for the examples if you do not want type it yourself. The examples themselves were applied to real world problems; I could see how the recipe was used clearly. When the authors felt they could not provide an entire solution in the text, they point the correct place to visit online. The range in topics was impressive. I found the most challenging chapters to be 9, 12, and 15 which were on metaprogramming, concurrency, and C Extensions. At the beginning of the book the recipes cover topics you would expect like data structures and algorithms, strings, and generators. I found myself surprised that I had not seen a lot of the techniques and solutions before. They were well crafted solutions, and I appreciated how much time and detail the authors must have spent to gather the information. This is a great reference to have by your side when programming in Python.
Review: Great book, Kindle version has table of contents - I already have the print version of this book, and like it a lot. It's full of very instructive examples that you can study and learn from. I bought the Kindle edition in January 2019 wondering if it had a table of contents, as some people said, no, it didn't. First of all, I wouldn't even try to read the Kindle edition on my Kindle Paperwhite, since the screen is too small and the contrast is not great. Instead, I read it on the Kindle for PC Windows program, and the book is easy to read, including the code examples (this is on a 24" monitor). I can report that when read on the Kindle PC program, the inline text in the main window does not include a text version of the table of contents. However, on the left side of the Kindle PC program, if you click the icon for "table of contents", a full clickable and expandable table of contents appears in a narrow window to the left of the main text window. This is fully usable as a table of contents, and makes for very easy browsing. There is also a full clickable index at the end of the main body of text. The page numbers in my Kindle edition correspond exactly with the page numbers in my printed version. Another Kindle for PC plus: the example code uses color for syntax highlighting, which is nice. Edit: Upon further browsing, if you go to the very end of the main text window, there is a clickable text version of the table of contents. It's not so useful at the very end of the document - the left-side table of contents window is much more convenient. This is in the Kindle for PC Windows program.

## Technical Specifications

| Specification | Value |
|---------------|-------|
| Best Sellers Rank | #213,650 in Books ( See Top 100 in Books ) #86 in Microsoft Programming (Books) #152 in Python Programming #168 in Software Development (Books) |
| Customer Reviews | 4.6 out of 5 stars 665 Reviews |

## Images

![Python Cookbook, Third Edition - Image 1](https://m.media-amazon.com/images/I/91TnJtD9RfL.jpg)

## Customer Reviews

### ⭐⭐⭐⭐⭐ Treasure Trove of Python Recipes
*by W***S on May 6, 2016*

Python Cookbook goes in depth on a variety of different Python topics. Each section is similar to a question that might be asked on Stack Overflow. The recipes range in difficulty from easy to advanced metaprogramming. One particular recipe that I liked was 9.1 on how to time a function. When I am using Python I often need to time the code, and usually I need to look up how to do it. This example created a decorator function for timing. It makes it so that you can just put @timethis on top of a function and see how long it takes to execute. I appreciated how elegant this solution was as opposed to the way I was implementing it. Most examples are self contained and all the code examples that I tried worked. Additionally, there is a GitHub that the authors created which provides all the code for the examples if you do not want type it yourself. The examples themselves were applied to real world problems; I could see how the recipe was used clearly. When the authors felt they could not provide an entire solution in the text, they point the correct place to visit online. The range in topics was impressive. I found the most challenging chapters to be 9, 12, and 15 which were on metaprogramming, concurrency, and C Extensions. At the beginning of the book the recipes cover topics you would expect like data structures and algorithms, strings, and generators. I found myself surprised that I had not seen a lot of the techniques and solutions before. They were well crafted solutions, and I appreciated how much time and detail the authors must have spent to gather the information. This is a great reference to have by your side when programming in Python.

### ⭐⭐⭐⭐⭐ Great book, Kindle version has table of contents
*by J***C on January 7, 2019*

I already have the print version of this book, and like it a lot. It's full of very instructive examples that you can study and learn from. I bought the Kindle edition in January 2019 wondering if it had a table of contents, as some people said, no, it didn't. First of all, I wouldn't even try to read the Kindle edition on my Kindle Paperwhite, since the screen is too small and the contrast is not great. Instead, I read it on the Kindle for PC Windows program, and the book is easy to read, including the code examples (this is on a 24" monitor). I can report that when read on the Kindle PC program, the inline text in the main window does not include a text version of the table of contents. However, on the left side of the Kindle PC program, if you click the icon for "table of contents", a full clickable and expandable table of contents appears in a narrow window to the left of the main text window. This is fully usable as a table of contents, and makes for very easy browsing. There is also a full clickable index at the end of the main body of text. The page numbers in my Kindle edition correspond exactly with the page numbers in my printed version. Another Kindle for PC plus: the example code uses color for syntax highlighting, which is nice. Edit: Upon further browsing, if you go to the very end of the main text window, there is a clickable text version of the table of contents. It's not so useful at the very end of the document - the left-side table of contents window is much more convenient. This is in the Kindle for PC Windows program.

### ⭐⭐⭐⭐⭐ Wisdom - not just examples. Best viewed on a larger screen
*by D***N on July 23, 2013*

The Active State repository of Python recipes includes many gems, but as the Authors observe in their preference: "most of these recipes are steeped in history and the past". I'd add that the signal to noise ratio seems to be decreasing. The most prolific contributors (with the exception of Raymond Hettinger) have posted trivial examples rather than recipes. This book includes some simple examples too, but it's always in the context of a larger message. Excellent content and advice without the chaff. I just bought this today. Unlike some early technical Kindle books I've purchased, the formatting is excellent. Kudos to the authors and publisher. But when I first browsed the content with Kindle-Android on my 7" tablet (Nexus), I still found it frustrating to read. Next, I tried my laptop with a 14" screen - better. And then tried it on my PC with a large monitor and found reading and jumping around the content much more productive and pleasurable. Switched back to the tablet, I changed the text settings to minimums for font size, margin size, line spacing and entered full-screen mode. Result: much better! That said, I still found the much larger screen area on my PC monitor preferable. Bottom Line: Buy this for great Python 3.3 code and advice in a flexible format.

## Frequently Bought Together

- Python Cookbook: Recipes for Mastering Python 3
- Fluent Python: Clear, Concise, and Effective Programming
- Learning Python: Powerful Object-Oriented Programming

---

## Why Shop on Desertcart?

- 🛒 **Trusted by 1.3+ Million Shoppers** — Serving international shoppers since 2016
- 🌍 **Shop Globally** — Access 737+ million products across 21 categories
- 💰 **No Hidden Fees** — All customs, duties, and taxes included in the price
- 🔄 **15-Day Free Returns** — Hassle-free returns (30 days for PRO members)
- 🔒 **Secure Payments** — Trusted payment options with buyer protection
- ⭐ **TrustPilot Rated 4.5/5** — Based on 8,000+ happy customer reviews

**Shop now:** [https://www.desertcart.in/products/3840554-python-cookbook-third-edition](https://www.desertcart.in/products/3840554-python-cookbook-third-edition)

---

*Product available on Desertcart India*
*Store origin: IN*
*Last updated: 2026-06-06*