Download Book Files

You can access this book in different file formats that are optimized to give you a great reading experience, no matter which device you are using. The options are as follows:

DRM-free PDF optimized for reading on tablets and computers:

ePub version for e-reader devices and phones/tablets:

Download

Python Tricks: The Book (ePub)

359.8 KB

Mobipocket (.mobi) version for reading on Kindle devices:

Changelog

2020-05-18

  • Fixed ePub code blocks on Apple Books (iPad and macOS 10.15)
  • Fixed a typo in the intro section

Nico on Oct. 1, 2019

I can’t download the files, the download is less than 1kb

igor on Oct. 1, 2019

Dowload worked for me fine right now.

Dan Bader RP Team on Oct. 3, 2019

If you’re having trouble downloading the book files, can you please email me at info@realpython.com so we can get to the bottom of this. Thanks :)

darenchard on Oct. 4, 2019

Looks great! Thanks Dan!

dcmdcm on Nov. 2, 2019

As you continue to make changes to this book, would you datestamp either the “course” page or this download page? This would enable me to know if I need to d/l a new copy. Or do you already email people when new versions come out?

Dan Bader RP Team on Nov. 4, 2019

As you continue to make changes to this book, would you datestamp either the “course” page or this download page?

Yep, good idea! I’ll add a changelog to this page when I release a new version. If you’re on the email newsletter, I’m also sending out a notification email there :)

Paul Watson on Jan. 15, 2020

I was initially rejected for file download when I typed in my email address and then copied and pasted the password script. These were 2 different fonts input, so I copied and pasted both email address and password sent to me and pasted them as same font and it worked fine for me. Download was also successful.

John Cherry on Jan. 19, 2020

No problems downloading the latest version of the PDF file. Thanks.

marianpeteri on April 11, 2020

Thanks for downloading

krzysztofkielak on May 2, 2020

Hi! Apparently latest MacOSX Update, and Books application (I’m on 10.15.4) rendered ePub version not readable - source code examples are not visible.

Do you think you can help with that?

asharsidd on May 21, 2020

Downloaded the file OK. I will go through it in coming days and will provide feedback. Thanks

Dan Bader RP Team on May 21, 2020

Apparently latest MacOSX Update, and Books application (I’m on 10.15.4) rendered ePub version not readable - source code examples are not visible.

This is now fixed. This was caused by a bug in a recent Apple Books update but there’s a workaround that restores the text. Please download the latest version of the ePub file on this page :)

atef1968 on July 16, 2020

Downloaded the file OK. I will go through it in coming days and will provide feedback. How can I download 12 HD-quality bonus videos (2+ hours total)? thanks

Dan Bader RP Team on July 17, 2020

The videos are only available for online streaming @atef1968, you can find them here linked in the table of contents: realpython.com/courses/python-tricks-book/

Randall Nagy on Oct. 11, 2020

Got the book - PDF downloaded fine. So far, so Pythonista!

Christina Ellul on Nov. 12, 2020

can I transfer this book to another account? I wanted to buy it as a gift and thought it was a hard copy

Dan Bader RP Team on Nov. 12, 2020

@Christina: No problem, we can do that. Can you send a quick email to info@realpython.com with your account details and where you want the book transferred and we’ll get that on the way for you :)

crneoh on Nov. 23, 2020

Thanks for this wonderful book. With a little problem about PDF book, when I highlight certain lines in book with PDF reader, it turn out highlighting extra spaces.

christelhh on March 12, 2021

Where can I find the “Extra Bonus: 12 Python Tutorial Videos

The book package includes 12 HD-quality Python tutorial videos, adding up to over 127 minutes of run-length.”

?

Dan Bader RP Team on March 12, 2021

@christelhh: The videos are hosted here on the web page for the book. You can see them all on the overview page or by clicking on Bonus Videos in the table of contents on the sidebar.

Patrik Plachy on July 19, 2021

Great job, Mr. Dan! Thanks for that. Would it be possible to read a book directly in HTML? Ie. in a browser similar to other materials on the “Real Python” site.

pjdw on Jan. 13, 2023

I purchased the book and was reading it on my iPad (pdf). It is displayed in a times like font. Could I change this to helvetica (neue) or arial. Better for dyslectic people ;)

Dan Bader RP Team on Jan. 16, 2023

Hi @pjdw, I recommend using the ePub version of the book for reading on tablets and phones. ePub is a digital book format that allows you to adjust the font size and font face to your liking.

The ePub version is included with any digital purchase of our books made here on realpython.com, you’ll find it on the list of book downloads under “ePub version for e-reader devices and phones/tablets”.

pjdw on Jan. 17, 2023

Tha!nks; I will give it a try

You must own this product to join the conversation.