Buy new:
$29.99
FREE delivery: Thursday, Jan 18 on orders over $35.00 shipped by Amazon.
Ships from: Amazon.com
Sold by: Amazon.com
Get Fast, Free Shipping with Amazon Prime FREE Returns
Return this item for free
  • Free returns are available for the shipping address you chose. You can return the item for any reason in new and unused condition: no shipping charges
  • Learn more about free returns.
FREE delivery Thursday, January 18 on orders shipped by Amazon over $35
In Stock
$$29.99 () Includes selected options. Includes initial monthly payment and selected options. Details
Price
Subtotal
$$29.99
Subtotal
Initial payment breakdown
Shipping cost, delivery date, and order total (including tax) shown at checkout.
Get Fast, Free Shipping with Amazon Prime
FREE delivery January 23 - 29 on orders shipped by Amazon over $35
Or fastest delivery January 22 - 26
Used: Good | Details
Sold by JW DIST
Condition: Used: Good
Comment: Wear on corners and edges. Former library book with usual stamps and stickers. Ships direct from Amazon! Ships from USA, 30-day return for any reason!
Access codes and supplements are not guaranteed with used items.
Other Sellers on Amazon
Added
$25.40
+ $3.99 shipping
Sold by: Omega Books and More Inc.
Sold by: Omega Books and More Inc.
(10539 ratings)
97% positive over last 12 months
Only 1 left in stock - order soon.
Shipping rates and Return policy
Loading your book clubs
There was a problem loading your book clubs. Please try again.
Not in a club? Learn more
Amazon book clubs early access

Join or create book clubs

Choose books together

Track your books
Bring your club to Amazon Book Clubs, start a new book club and invite your friends to join, or find a club that’s right for you for free.
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

Follow the author

Something went wrong. Please try your request again later.

Python Tricks: A Buffet of Awesome Python Features Paperback – October 25, 2017

4.6 4.6 out of 5 stars 1,845 ratings

Great on Kindle
Great Experience. Great Value.
iphone with kindle app
Putting our best book forward
Each Great on Kindle book offers a great reading experience, at a better value than print to keep your wallet happy.

Explore your book, then jump right back to where you left off with Page Flip.

View high quality images that let you zoom in to take a closer look.

Enjoy features only possible in digital – start reading right away, carry your library with you, adjust the font, create shareable notes and highlights, and more.

Discover additional details about the events, people, and places in your book, with Wikipedia integration.

Get the free Kindle app: Link to the kindle app page Link to the kindle app page
Enjoy a great reading experience when you buy the Kindle edition of this book. Learn more about Great on Kindle, available in select categories.
{"desktop_buybox_group_1":[{"displayPrice":"$29.99","priceAmount":29.99,"currencySymbol":"$","integerValue":"29","decimalSeparator":".","fractionalValue":"99","symbolPosition":"left","hasSpace":false,"showFractionalPartIfEmpty":true,"offerListingId":"EZKpG%2BR2aSn%2FBETORORqVYoh865gR6zLE2x09lPezi44YSNdMdT4%2B2S53WAJe%2BR7XQKJ0CDb2kRDjOhZOSW5cwC3nrlsBlrOk1S3G5NDEAlAjSLSWpOA3JQQyarEeh%2F9glqVGTumi0P6%2BgsISDqAIw%3D%3D","locale":"en-US","buyingOptionType":"NEW","aapiBuyingOptionIndex":0}, {"displayPrice":"$20.80","priceAmount":20.80,"currencySymbol":"$","integerValue":"20","decimalSeparator":".","fractionalValue":"80","symbolPosition":"left","hasSpace":false,"showFractionalPartIfEmpty":true,"offerListingId":"EZKpG%2BR2aSn%2FBETORORqVYoh865gR6zL7mbUACnShd1m9dxEnSXpzz8A%2BksM58dUi8jMi4vpmSo8WsayVWzymyjqFB8muIgteOGb%2BSf6F%2BLyYFEl%2F0wRYe1qcJVKYtlhr6UcckVE5M9Pw92KxTOvDqMDU7MloDpMveDHK3MzZtrfaEyx%2BDAJoNirC5lK%2BnZl","locale":"en-US","buyingOptionType":"USED","aapiBuyingOptionIndex":1}]}

Purchase options and add-ons

“I don’t even feel like I’ve scratched the surface of what I can do with Python”

With Python Tricks: The Book you’ll discover Python’s best practices and the power of beautiful & Pythonic code with simple examples and a step-by-step narrative.

You'll get one step closer to mastering Python, so you can write beautiful and idiomatic code that comes to you naturally.

Learning the ins and outs of Python is difficult—and with this book you'll be able to focus on the practical skills that really matter. Discover the “hidden gold” in Python’s standard library and start writing clean and Pythonic code today.

Who Should Read This Book:

  • If you’re wondering which lesser known parts in Python you should know about, you’ll get a roadmap with this book. Discover cool (yet practical!) Python tricks and blow your coworkers’ minds in your next code review.
  • If you’ve got experience with legacy versions of Python, the book will get you up to speed with modern patterns and features introduced in Python 3 and backported to Python 2.
  • If you’ve worked with other programming languages and you want to get up to speed with Python, you’ll pick up the idioms and practical tips you need to become a confident and effective Pythonista.
  • If you want to make Python your own and learn how to write clean and Pythonic code, you’ll discover best practices and little-known tricks to round out your knowledge.

What Python Developers Say About The Book:

"I kept thinking that I wished I had access to a book like this when I started learning Python many years ago." — Mariatta Wijaya, Python Core Developer

"This book makes you write better Python code!" — Bob Belderbos, Software Developer at Oracle

"Far from being just a shallow collection of snippets, this book will leave the attentive reader with a deeper understanding of the inner workings of Python as well as an appreciation for its beauty." — Ben Felder, Pythonista

"It's like having a seasoned tutor explaining, well, tricks!" — Daniel Meyer, Sr. Desktop Administrator at Tesla Inc.

About the Author

Dan Bader is a software developer and consultant who helps Python programmers take their coding skills to the next level. His articles, videos, and trainings reach over half a million developers per year. Dan has more than 15 years of experience in software design and development and holds a bachelor's and a master's degree in Computer Science. Find out more about Dan at www.dbader.org.

Amazon First Reads | Editors' picks at exclusive prices

Frequently bought together

$29.99
Get it as soon as Thursday, Jan 18
In Stock
Ships from and sold by Amazon.com.
+
$7.95
Get it as soon as Wednesday, Jan 17
In Stock
Ships from and sold by Amazon.com.
+
$37.99
Get it as soon as Thursday, Jan 18
In Stock
Ships from and sold by Amazon.com.
Total price:
To see our price, add these items to your cart.
Details
Added to Cart
Choose items to buy together.

Product details

  • Publisher ‏ : ‎ Dan Bader; 1st edition (October 25, 2017)
  • Language ‏ : ‎ English
  • Paperback ‏ : ‎ 301 pages
  • ISBN-10 ‏ : ‎ 1775093301
  • ISBN-13 ‏ : ‎ 978-1775093305
  • Item Weight ‏ : ‎ 14.3 ounces
  • Dimensions ‏ : ‎ 6 x 0.68 x 9 inches
  • Customer Reviews:
    4.6 4.6 out of 5 stars 1,845 ratings

Important information

To report an issue with this product or seller, click here.

About the author

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

Hey there! My name is Dan Bader and I’m a complete Python nut.

I’ve been obsessed with programming ever since I managed to convince my parents to buy me a dusty old Commodore 64 from the classifieds in a local newspaper. And my love for writing code hasn’t diminished since then.

Today I help Python developers take their coding skills and productivity to the next level. I’m an independent software engineer, author, and speaker. I’ve been developing software for 15 years—and I’d love to help you become a more proficient Python coder.

Customer reviews

4.6 out of 5 stars
4.6 out of 5
1,845 global ratings
All Photos
Great resource for intermediate Python users to round out their knowledge of the language
5 Stars
Great resource for intermediate Python users to round out their knowledge of the language
I consider myself an 'early intermediate' Pythonista, with about three years of self-taught experience in the language, bolstered by all the good resources out there online. I first ran across Dan's page/blog through a Twitter link, I think, and have really enjoyed his Python Tricks emails. Some of them aren't news to me, but there have been multiple instances where they've given me a key insight into the behavior of Python, or an idea that's helped me improve my projects.As he notes in the Introduction, this book grew out of the Python Tricks emails, and it really shows. Dan has a knack for constructing code snippets that illustrate Python concepts in very few lines, and also for writing extremely clear descriptions of why they behave as they do. Further, even though Dan has years of Python experience, it seems clear to me he hasn't lost the sense of the ways in which Python can be confusing to new learners. I've only sampled here and there from his Buffet at this point, but have already gained two new concrete pieces of knowledge: bytearrays are mutable whereas bytes are not; and all it takes to create an abstract base class is to use metaclass=ABCMeta and decorate as needed with @abstractmethod. Even though I'd looked at the Python documentation for both of these before, I never quite understood either of them. But, Dan's phrasing and presentation made them crystal clear on my first read.One additional thing I like about the book is how Dan has included bits and pieces of his philosophy on Python, programming, writing good code, etc. Some people might be turned off by the editorializing, I suppose, but I really appreciate that the book provides these sorts of "meta" perspectives.All in all, an excellent resource for someone with modest to moderate Python experience looking to round out their knowledge of some of the more subtle features/behaviors of the language.
Great resource for intermediate Python users to round out their knowledge of the language
Thank you for your feedback
Sorry, there was an error
Sorry we couldn't load the review

Top reviews from the United States

Reviewed in the United States on January 6, 2024
Reviewed in the United States on June 9, 2023
3 people found this helpful
Report
Reviewed in the United States on November 7, 2017
206 people found this helpful
Report
Reviewed in the United States on May 3, 2023
2 people found this helpful
Report
Reviewed in the United States on November 14, 2017
Customer image
5.0 out of 5 stars Great resource for intermediate Python users to round out their knowledge of the language
Reviewed in the United States on November 14, 2017
I consider myself an 'early intermediate' Pythonista, with about three years of self-taught experience in the language, bolstered by all the good resources out there online. I first ran across Dan's page/blog through a Twitter link, I think, and have really enjoyed his Python Tricks emails. Some of them aren't news to me, but there have been multiple instances where they've given me a key insight into the behavior of Python, or an idea that's helped me improve my projects.

As he notes in the Introduction, this book grew out of the Python Tricks emails, and it really shows. Dan has a knack for constructing code snippets that illustrate Python concepts in very few lines, and also for writing extremely clear descriptions of why they behave as they do. Further, even though Dan has years of Python experience, it seems clear to me he hasn't lost the sense of the ways in which Python can be confusing to new learners. I've only sampled here and there from his Buffet at this point, but have already gained two new concrete pieces of knowledge: bytearrays are mutable whereas bytes are not; and all it takes to create an abstract base class is to use metaclass=ABCMeta and decorate as needed with @abstractmethod. Even though I'd looked at the Python documentation for both of these before, I never quite understood either of them. But, Dan's phrasing and presentation made them crystal clear on my first read.

One additional thing I like about the book is how Dan has included bits and pieces of his philosophy on Python, programming, writing good code, etc. Some people might be turned off by the editorializing, I suppose, but I really appreciate that the book provides these sorts of "meta" perspectives.

All in all, an excellent resource for someone with modest to moderate Python experience looking to round out their knowledge of some of the more subtle features/behaviors of the language.
Images in this review
Customer image
Customer image
47 people found this helpful
Report
Reviewed in the United States on May 23, 2019
Customer image
5.0 out of 5 stars Probably one of the best programming book I've read in a while.
Reviewed in the United States on May 23, 2019
I am not a big fan of reading books in general. But, I just finished reading through every chapters in this book after 13 days of daily reading. I found this book both very fun and informative. If you are looking for something more than beginner python tutorials, this book will surely do a good job to satisfy some of the thirst that you had. Here are some Pros/Cons of the book.

Pros:
1. Good book material quality and size (small but also perfect thickness to carry around).
2. Great and interesting topics with intermediate+ level examples.
3. Concepts were very well described.

Cons:
1. Books lacks colors, It seems like HTMl version of this must have used some Markdown but the book is just plain black/white texts.
2. Wish there were some more examples per topics.
3. Chapters/Topics are short enough that *key takeaways* section can seem bit redundant. Maybe some kind of *quiz* or some kind of *small mission for readers to go find out* type of section would been more useful IMO.

But, I really enjoyed this book. So how about you give it a try as well?
Images in this review
Customer image Customer image Customer image
Customer imageCustomer imageCustomer image
5 people found this helpful
Report
Reviewed in the United States on May 24, 2022
5 people found this helpful
Report

Top reviews from other countries

Translate all reviews to English
Guillardi
5.0 out of 5 stars Do básico ao avançado... Bastante conteúdo.
Reviewed in Brazil on January 2, 2022
One person found this helpful
Report
Bhagyashree Shastrakar
5.0 out of 5 stars Amazing
Reviewed in India on December 5, 2023
Customer image
Bhagyashree Shastrakar
5.0 out of 5 stars Amazing
Reviewed in India on December 5, 2023
Wonderful book
Images in this review
Customer image
Customer image
Michael Müller
5.0 out of 5 stars I love it, it enhaced my meager skills
Reviewed in Germany on November 12, 2022
Cliente de Amazon
5.0 out of 5 stars No es un libro para principiantes ni es un libro para aprender Python.
Reviewed in Mexico on October 26, 2019
Cliente Amazon
5.0 out of 5 stars very practical book
Reviewed in Spain on October 31, 2019
One person found this helpful
Report