Buy new:
-13%
$65.50$65.50
FREE delivery Friday, February 20
Advertisement
Ships from: Amazon Sold by: ylnztkbrsyhtycmzvrdr,clsknlmk
Save with Used - Good
$10.26$10.26
FREE delivery Friday, February 20 on orders shipped by Amazon over $35
Advertisement
Ships from: Amazon Sold by: Lone Star Distributing Co
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!
Add work books and access codes to your order
Sorry, there was a problem.
There was an error retrieving your Wish Lists. Please try again.Sorry, there was a problem.
List unavailable.
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.
Learning Python, 5th Edition 5th Edition
Purchase options and add-ons
Get a comprehensive, in-depth introduction to the core Python language with this hands-on book. Based on author Mark Lutz’s popular training course, this updated fifth edition will help you quickly write efficient, high-quality code with Python. It’s an ideal way to begin, whether you’re new to programming or a professional developer versed in other languages.
Complete with quizzes, exercises, and helpful illustrations, this easy-to-follow, self-paced tutorial gets you started with both Python 2.7 and 3.3― the latest releases in the 3.X and 2.X lines―plus all other releases in common use today. You’ll also learn some advanced language features that recently have become more common in Python code.
- Explore Python’s major built-in object types such as numbers, lists, and dictionaries
- Create and process objects with Python statements, and learn Python’s general syntax model
- Use functions to avoid code redundancy and package code for reuse
- Organize statements, functions, and other tools into larger components with modules
- Dive into classes: Python’s object-oriented programming tool for structuring code
- Write large programs with Python’s exception-handling model and development tools
- Learn advanced Python tools, including decorators, descriptors, metaclasses, and Unicode processing
- ISBN-101449355730
- ISBN-13978-1449355739
- Edition5th
- PublisherO'Reilly Media
- Publication dateJuly 30, 2013
- LanguageEnglish
- Dimensions7 x 2.8 x 9.19 inches
- Print length1643 pages
There is a newer edition of this item:
Frequently bought together

Deals on related products
Customers also bought or read
- Python Pocket Reference: Python In Your Pocket (Pocket Reference (O'Reilly))
Paperback$13.09$13.09Delivery Fri, Feb 20 - Programming Python: Powerful Object-Oriented Programming
Paperback$43.69$43.69FREE delivery Fri, Feb 20 - Fluent Python: Clear, Concise, and Effective Programming
Paperback$43.99$43.99FREE delivery Fri, Feb 20 - Python for Data Analysis: Data Wrangling with pandas, NumPy, and Jupyter
Paperback$43.99$43.99FREE delivery Fri, Feb 20 - Python Crash Course, 3rd Edition: A Hands-On, Project-Based Introduction to Programming#1 Best SellerPython Programming
Paperback$27.53$27.53Delivery Fri, Feb 20 - Automate the Boring Stuff with Python, 2nd Edition: Practical Programming for Total Beginners
Paperback$18.80$18.80FREE delivery Feb 24 - 27 - Effective Python: 90 Specific Ways to Write Better Python (Effective Software Development Series)
Paperback$55.60$55.60$3.99 delivery Mar 5 - 10 - Learn Python 3 the Hard Way: A Very Simple Introduction to the Terrifyingly Beautiful World of Computers and Code (Zed Shaw's Hard Way Series)
Paperback$20.93$20.93Delivery Fri, Feb 20 - Introducing Python: Modern Computing in Simple Packages
Paperback$50.39$50.39FREE delivery Fri, Feb 20 - JavaScript: The Definitive Guide: Master the World's Most-Used Programming Language
Paperback$34.30$34.30Delivery Fri, Feb 20 - Python 3: The Comprehensive Guide to Hands-On Python Programming (Rheinwerk Computing)
Paperback$39.72$39.72FREE delivery Fri, Feb 20 - Essential Math for Data Science: Take Control of Your Data with Fundamental Linear Algebra, Probability, and Statistics
Paperback$37.10$37.10FREE delivery Fri, Feb 20 - Hands-On Machine Learning with Scikit-Learn, Keras, and TensorFlow: Concepts, Tools, and Techniques to Build Intelligent Systems
Paperback$49.50$49.50FREE delivery Fri, Feb 20 - Impractical Python Projects: Playful Programming Activities to Make You Smarter
Paperback$21.72$21.72FREE delivery Feb 25 - Mar 2 - Effective Python: 125 Specific Ways to Write Better Python (Effective Software Development Series)
Paperback$52.80$52.80FREE delivery Fri, Feb 20 - Python Data Science Handbook: Essential Tools for Working with Data
Paperback$44.18$44.18FREE delivery Mar 2 - 7 - Architecture Patterns with Python: Enabling Test-Driven Development, Domain-Driven Design, and Event-Driven Microservices
Paperback$37.10$37.10FREE delivery Fri, Feb 20 - Machine Learning with PyTorch and Scikit-Learn: Develop machine learning and deep learning models with Python
Paperback$37.95$37.95FREE delivery Fri, Feb 20 - Head First Python: A Learner's Guide to the Fundamentals of Python Programming, A Brain-Friendly Guide
Paperback$41.95$41.95FREE delivery Fri, Feb 20 - Python Crash Course, 2nd Edition: A Hands-On, Project-Based Introduction to Programming
Paperback$21.00$21.00FREE delivery Wed, Feb 25 - C Programming Language, 2nd Edition#1 Best SellerC Programming Language
Paperback$60.00$60.00FREE delivery Mar 8 - 14 - Hands-On Large Language Models: Language Understanding and Generation
Paperback$47.69$47.69FREE delivery Fri, Feb 20
From the brand
-
Learn Python
-
Python performace
-
Python for Data Science
-
Sharing the knowledge of experts
O'Reilly's mission is to change the world by sharing the knowledge of innovators. For over 40 years, we've inspired companies and individuals to do new things (and do them better) by providing the skills and understanding that are necessary for success.
Our customers are hungry to build the innovations that propel the world forward. And we help them do just that.
Editorial Reviews
About the Author
Mark is the author of the three O'Reilly books: Learning Python, Programming Python, and Python Pocket Reference, all currently in fourth or fifth editions. He has been using and promoting Python since 1992, started writing Python books in 1995, and began teaching Python classes in 1997. As of Spring 2013, Mark has instructed 260 Python training sessions, taught roughly 4,000 students in live classes, and written Python books that have sold 400,000 units and been translated to at least a dozen languages
Together, his two decades of Python efforts have helped to establish it as one of the most widely used programming languages in the world today. In addition, Mark has been in the software field for 30 years. He holds BS and MS degrees in computer science from the University of Wisconsin where he explored implementations of the Prolog language, and over his career has worked as a professional software developer on compilers, programming tools, scripting applications, and assorted client/server systems.
Mark maintains a training website (http://learning-python.com) and an additional book support site on the Web (http://www.rmi.net/~lutz).
Product details
- Publisher : O'Reilly Media
- Publication date : July 30, 2013
- Edition : 5th
- Language : English
- Print length : 1643 pages
- ISBN-10 : 1449355730
- ISBN-13 : 978-1449355739
- Item Weight : 5.1 pounds
- Dimensions : 7 x 2.8 x 9.19 inches
- Part of series : Learning Python
- Best Sellers Rank: #307,460 in Books (See Top 100 in Books)
- #74 in Object-Oriented Design
- #172 in Introductory & Beginning Programming
- #232 in Python Programming
- Customer Reviews:
About the authors

Mark Lutz is the author of Python's classic and foundational texts, a former trainer with two decades of experience teaching Python to newcomers, and one of the people responsible for the prominence that Python enjoys today. For more info, see the author's books and programming site at learning-python.com.

Discover more of the author’s books, see similar authors, read book recommendations and more.
Related products with free delivery on eligible orders
Customer reviews
Customer Reviews, including Product Star Ratings help customers to learn more about the product and decide whether it is the right product for them.
To calculate the overall star rating and percentage breakdown by star, we don’t use a simple average. Instead, our system considers things like how recent a review is and if the reviewer bought the item on Amazon. It also analyzed reviews to verify trustworthiness.
Learn more how customers reviews work on AmazonCustomers say
Generated from the text of customer reviewsSelect to learn more
Reviews with images
A Mark Lutz Trifecta of Python Winners
Top reviews from the United States
There was a problem filtering reviews. Please reload the page.
- Reviewed in the United States on January 14, 2014I don't write too many reviews but I have to review this book. I'm just trying to learn the language to do some web, security, and rasberry pi development on my own. I tried to learn python over a year ago, got frustrated and quit. I tried to pick up the language again about 2 weeks ago. I have read and tried to work through Learning Python the Hard Way (LPHW). LPHW is a good resource and it did give me a general understand of the language. It teaches python version 2x. I have also read Dive into Python 3 (DP3). DP3 is also a good resource and it teaches python version 3x. I have also read and referenced [...] For the most part, I am able to write simple code. But I got frustrated when I tried to review and understand complex code structures. I had a hard time understanding the nuances of the language. I spent hours searching online and watching tutorial videos. But I was constantly frustrated because there were all these exceptions that didn't make sense to me. I kept on asking why this works and why that does not work.
The best thing about this book is that it explain the nuances of the language by giving multiple examples. So it does explains it in a complete manner. A lot of other resources will touch upon a topic and then glance over it. I often wondered.. what about this... so a lot of other resources expect you to test the other cases out which in most circumstance will be okay, but in others, you are still left wondering "why?". This book does not do that. In fact, I almost didn't need to try the examples on the interactive python command line because it was so thorough.
This book is not for the beginner. You will get lost among the trees in the forest because there is so much information in this book. If you are impatient or need to start coding right away, you really won't be able to do this with Learning Python. LPHW and DP3 are much better at getting you up and running. But to write error free code, you have to understand the nuances of the language which Learning Python teaches you. Learning Python the Hard Way (free on the internet) and Dive into Python 3 (also free) are great resources to get introduced to the language. I would recommend both before you delve into this book. But once you get an understand of the basics of python, this book will fill in the missing details.
As a disclaimer, I have only been reading this book for a day. I have already read 300 pages. A lot of it was review. But I learned a lot of new stuff as well that filled in the gaps. I have not read the section on regex or the more advanced sections yet so this review is not complete. But so far, I am impressed on the thoroughness of the subject matter.
The main grip I have is that I bought the kindle version. If I read it in a linear fashion the material seem to flow nicely. But when I come to certain sections, I need to jump around. You find this a lot with any technical book. The kindle version makes this difficult because I cannot "easily" keep track of what I was reading so I get side tracked a lot. I also cannot effectively add notes (yes, I know I can add notes). I ended up using 4 devices to read this book just to keep track of where I was. I may get the hardcopy so that I have an easy quick reference book to look at later at my desk. With a hard copy, I use bookmarkers that I can quickly page to. I know about the kindle bookmarks but they are cumbersome to use. Fortunately, its hard to beat the fact that I can carry this book on my phone if I wanted to. So I would rate the kindle version 3 stars.
Overall, I would buy this again on kindle.
- Reviewed in the United States on April 5, 2023Format: PaperbackVerified PurchaseI wanted to pick up programming as a little hobby to do in my spare time. After stumbling through countless websites picking up little tidbits of information here and there (and spending ALOT more time and effort than I expected) I was starting to doubt if this was even possible to learn myself. As said before, I would pick up little bits of information and try to make my own little programs. I got very very basic information down but couldn’t comprehend how to to write anything more than a simple 20 line script. I was about to give up. Then I bought this book.
and WOW. This book was absolutely amazing. I read it for hours everyday from when I purchased it. I finished the book 3 weeks later. I can say this book was monumental in what it taught me. (And it’s size too - LOL - the thing is massive but so worth the read)
He teaches everything so simple and easy to read. Go through his lines of every example and try to understand what is happening. You’ll find by about page 500 everything is slowly starting to make sense. By page 1000 you’ll be thinking wow I can read and understand each example of code (even the longer ones). You start seeing how programs are put together, how every single line has a purpose. The syntax, the wording, the placement , the white space. I’ve thoroughly enjoyed learning programming from this book. It has enabled me to complete an online python course. I love solving problems on my own - each one is like a puzzle and I get a little joy when I successfully complete the challenge. Thank you Mark - for allowing me to experience this journey. I surely would have given up had I not found this book.
This book is like sitting directly in his college lectures for a semester. Only I didn’t have to spend 4 months to get the information. I could learn as fast as I could read. All told it was a 3 week book for me and it was very very very worth it. I’ve purchased his second book (Programming Python) and hope it will be just as good as this one.
If you’re serious about learning python than stop looking further. This needs to be a book you buy.
The contents are expansive and in depth without overloading you. It’s taught in a simple easy to understand way. And the appendix is well laid out so after you finish reading it and get into the nitty gritty of programming you can always know exactly where to look in the book to get help on how to do something. A+++.
Again, thank you Mark.
Top reviews from other countries
-
TheReaderReviewed in Germany on October 26, 20195.0 out of 5 stars Ein Biest von Buch, aber sicher eines der besten Python-Bücher, wenn man tief einsteigen will
Format: PaperbackVerified PurchaseÜber 1.500 Seiten - das ist ein Biest von Buch. Da kann man schon mal ein paar Wochen und Monate Zeit mit verbringen. Dabei baut dieses Werk das Wissen logisch und - meiner Meinung nach auch didaktisch sehr gut gemacht - auf. Sprache und Ausdrucksweise sind sehr gut verständlich, die diversen Wiederholungen mögen dem einen oder anderen Leser überflüssig scheinen, ich empfinde das aber eher positiv, weil beim Lesen und durcharbeiten eines Buchs diesen Umfangs am Ende doch mehr Wissen dauerhaft hängen bleibt. Wer Python ernsthafter und intensiver nutzen möchte, ist gut beraten, sich dieses Buch anzuschaffen, denn es hat Referenzcharakter. Man findet sehr viele Themen und der Index ist gut gepflegt.
Ich habe schon diverse Projekte in Java, C++ und C# realisiert, auch recht umfangreiche mit und ohne GUI, multithreaded, parallel und auch nicht parallel. Und dennoch muss ich sagen, dass - mal angesehen von den grundlegenden Sprachkonstrukten (Bedingungen, Operatoren, Schleifen, Listen, Arrays, Dictionaries etc ppa.), die in allen Programmiersprachen hinreichend ähnlich bis nahezu identisch aufgebaut und nutzbar sind - dieses Buch sehr deutlich zeigt, dass Python bei weitem alles andere als nur eine einfache "Script"-Sprache ist. Man kann definitiv schnell und easy Scripts mit Python schreiben und das auf vielen Betriebssystemen. Das ist genial. Alle erforderlichen Grundlagen dafür werden vom Author solide vermittelt und alle Konzepte sind hinreichend mit Beispiel-Code belegt. Easy to follow!
Aber mit Python lassen sich auch mächtige und trotzdem effiziente Programme schreiben. Ich betreibe z.B. einen Cluster mit 15 Raspi 3B+ Platinen (60 Threads), um neuronale Netze, parallele Algorithmen für Machine Learning und Programme (in MPI programmiert) zu erforschen, eigene Programme zu schreiben etc. ppa. Neben C++ ist hier Python eine hervorragend geeignete Sprache nicht nur für die Steuerung und das Monitoring meines Raspi-Clusters, sondern eben auch für die darauf laufenden verteilten Anwendungen inkl. GUIs z.B. mit Tkinter oder Anbindung an MySQL oder SQL-Server für Datenbanken. Bei all diesen Python-Projekten hat mir das Buch von Mark Lutz erheblich weitergeholfen. Dazu habe ich auch sein zweites "Big Beast" mit dem Titel "Programming Python", das ebenfalls gute 1.500 Seiten hat, gelesen, wo es um die praktischen Anwendungen, also der echten Programmierung von GUIs und zahlreichen realen Anwendungen aus verschiedenen Bereichen geht. Auch dieses zweite Buch ist ein Referenzwerk für mich.
Insgesamt kann ich "Learning Python" von Mark Lutz jedem empfehlen, der ein tieferes Verständnis von Python entwickeln möchte und der eben nicht nur ein paar kleine Scripts basteln möchte. Dafür gibt es sehr viel kürzere und kompaktere Darstellungen. Aber wer Python - wie ich - auch für größere und ernsthafte Projekte einsetzen möchte, sollte dieses Buch lesen und es in Greifnähe behalten. Ich beschäftige mich seit gut 1,5 Jahren intensiv mit Python und schlage noch immer das eine oder andere Thema in diesem Buch nach.
Als absolut hilfreiche und lesenswerte Ergänzung zu den beiden Büchern von Mark Lutz möchte ich hier auch das Buch "The Python 3 Standard Library by Example" von Doug Hellmann empfehlen. Es gibt für mich kein besseres Buch, dass die unglaublich umfangreichen Standardbibliotheken von Python so gut erklärt. Für Fortgeschrittene, die mal Profi werden wollen, eine wahre Goldgrube.
Andrea R.Reviewed in Italy on October 22, 20205.0 out of 5 stars Not a reference book! It is a tutorial.
Format: PaperbackVerified PurchaseThis is not a reference book, it is a tutorial so you will be probably better off by reading it from the beginning to the end. It explains everything in detail. The first chapters give a nice overview of the language and then it goes more in depth. I was really into this approach because it gives context before diving into the details. This will lead to some repetition of important concepts sometimes which I personally find extremely useful. It explains differences with python 2.x also. Not an easy read but be patient and take your time to digest the material.
You will find solutions to the exercise at the end.
Pages > 1500.
AleksanderReviewed in Poland on May 20, 20213.0 out of 5 stars Content is great, delivery and paper not
Format: PaperbackVerified PurchaseThe content of the book is very detailed and I personally found it useful during the learning process. The book came in not so good physical shape. The reason is partly paper quality, mostly though, it concerns packaging which allows the book to move freely inside the box.
francescoReviewed in the Netherlands on February 3, 20222.0 out of 5 stars Verbose, cluttered and dispersive
Format: PaperbackVerified PurchaseUnnecessarily long, extremely dispersive and cluttered. Sometimes redundant and ripetitive, sometimes surprisingly dismissive.
Check David Beazley books instead.
Casper Knows AllReviewed in Australia on February 26, 20235.0 out of 5 stars This is my second.
Format: PaperbackVerified PurchaseThis is a great book. Explanations are so clear and logically written. I love it.
Over a period of 4 months, I've brought two of these books. One for myself and one for my son who wanted to borrow it (I could part with my own copy, so I brought him one of his own).

















