Add Prime to get Fast, Free delivery
Amazon prime logo
Buy new:
-47% $21.08
FREE delivery Saturday, February 15 on orders shipped by Amazon over $35
Ships from: Amazon.com
Sold by: Amazon.com
$21.08 with 47 percent savings
List Price: $39.99
Get Fast, Free Shipping with Amazon Prime FREE Returns
FREE delivery Saturday, February 15 on orders shipped by Amazon over $35
Or Prime members get FREE delivery Tomorrow, February 11. Order within 3 hrs 11 mins.
In Stock
$$21.08 () Includes selected options. Includes initial monthly payment and selected options. Details
Price
Subtotal
$$21.08
Subtotal
Initial payment breakdown
Shipping cost, delivery date, and order total (including tax) shown at checkout.
Ships from
Amazon.com
Amazon.com
Ships from
Amazon.com
Sold by
Amazon.com
Amazon.com
Sold by
Amazon.com
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.
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
$14.99
Get Fast, Free Shipping with Amazon Prime FREE Returns
Book is in good condition and may contain underlining/highlighting and minimal wear. The book can also include "From the library of" labels. May not contain miscellaneous items (toys, dvds, etc.). We offer 100% money back guarantee and 24/7 customer service. Free 2-day shipping with Amazon Prime! Satisfaction Guaranteed! Book is in good condition and may contain underlining/highlighting and minimal wear. The book can also include "From the library of" labels. May not contain miscellaneous items (toys, dvds, etc.). We offer 100% money back guarantee and 24/7 customer service. Free 2-day shipping with Amazon Prime! Satisfaction Guaranteed! See less
FREE delivery Saturday, February 15 on orders shipped by Amazon over $35
Or Prime members get FREE delivery Tomorrow, February 11. Order within 3 hrs 26 mins.
Only 1 left in stock - order soon.
$$21.08 () Includes selected options. Includes initial monthly payment and selected options. Details
Price
Subtotal
$$21.08
Subtotal
Initial payment breakdown
Shipping cost, delivery date, and order total (including tax) shown at checkout.
Access codes and supplements are not guaranteed with used items.
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.

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) 4th Edition

4.4 4.4 out of 5 stars 1,029 ratings

{"desktop_buybox_group_1":[{"displayPrice":"$21.08","priceAmount":21.08,"currencySymbol":"$","integerValue":"21","decimalSeparator":".","fractionalValue":"08","symbolPosition":"left","hasSpace":false,"showFractionalPartIfEmpty":true,"offerListingId":"DsrwrXG7bYZmZMscbT6dnALIgyySusfeObASFrd%2BLCBN4iLQDac2P%2F26BPUxo87tIHp6nQWKJhj1GLEfCtuMe6aVPNqs8ifnAhrKmUjPOM8OziX3fC%2FatHoxKOhp9wmR3SagkcTPDQFlFaCqBrongQ%3D%3D","locale":"en-US","buyingOptionType":"NEW","aapiBuyingOptionIndex":0}, {"displayPrice":"$14.99","priceAmount":14.99,"currencySymbol":"$","integerValue":"14","decimalSeparator":".","fractionalValue":"99","symbolPosition":"left","hasSpace":false,"showFractionalPartIfEmpty":true,"offerListingId":"DsrwrXG7bYZmZMscbT6dnALIgyySusfeathBkFMRGyYeFSR8ze2YC%2BXdlpr1oTjwDU2ajGhpCwS2bPNgdqGjeL4D4De0VzFbZQHkhYdpytPvFxhha80V%2FNYD0mQfxuvkPRtU4%2Fkvf8f90sGKLojZap3XRQd3pAEde89V%2F47P9E0bWIjrpjqMLUReqOnBUx7o","locale":"en-US","buyingOptionType":"USED","aapiBuyingOptionIndex":1}]}

Purchase options and add-ons

You Will Learn Python 3!

Zed Shaw has perfected the world’s best system for learning Python 3. Follow it and you will succeed—just like the millions of beginners Zed has taught to date! You bring the discipline, commitment, and persistence; the author supplies everything else.

In Learn Python 3 the Hard Way, you’ll learn Python by working through 52 brilliantly crafted exercises. Read them. Type their code precisely. (No copying and pasting!) Fix your mistakes. Watch the programs run. As you do, you’ll learn how a computer works; what good programs look like; and how to read, write, and think about code. Zed then teaches you even more in 5+ hours of video where he shows you how to break, fix, and debug your code—live, as he’s doing the exercises.

  • Install a complete Python environment
  • Organize and write code
  • Fix and break code
  • Basic mathematics
  • Variables
  • Strings and text
  • Interact with users
  • Work with files
  • Looping and logic
  • Data structures using lists and dictionaries
  • Program design
  • Object-oriented programming
  • Inheritance and composition
  • Modules, classes, and objects
  • Python packaging
  • Automated testing
  • Basic game development
  • Basic web development

It’ll be hard at first. But soon, you’ll just get it—and that will feel great! This course will reward you for every minute you put into it. Soon, you’ll know one of the world’s most powerful, popular programming languages. You’ll be a Python programmer.

This Book Is Perfect For

  • Total beginners with zero programming experience
  • Junior developers who know one or two languages
  • Returning professionals who haven’t written code in years
  • Seasoned professionals looking for a fast, simple, crash course in Python 3
.

Frequently bought together

This item: 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)
$21.08
Get it as soon as Saturday, Feb 15
In Stock
Ships from and sold by Amazon.com.
+
$28.99
Get it as soon as Saturday, Feb 15
In Stock
Ships from and sold by Amazon.com.
+
$22.04
Get it as soon as Saturday, Feb 15
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
spCSRF_Treatment
Choose items to buy together.

From the Publisher

Benefits of Learning "The Hard Way"

Exercise 2

No experience required - learn through exercises

The title says it’s the hard way to learn to write code, but it’s actually not. It’s only the “hard” way because it uses a technique called instruction. Instruction is where Zed tells you to do a sequence of controlled exercises designed to build a skill through repetition. This technique works very well with beginners who know nothing and need to acquire basic skills before they can understand more complex topics. It’s used in everything from martial arts to music to even basic math and reading skills.

Exercise video

Video screen casts

You will have access to online video screen casts for every exercise. These videos demonstrate how the code works and, most importantly, how to break it. They are the perfect place to demonstrate many common errors by breaking the Python code on purpose and showing you how to fix it. Shaw also walks through the code using debugging and interrogation tricks and techniques. The videos are where Zed shows you how to “stop staring and ask” the code what’s wrong.

Young woman studying

The hard way is...easier

This book instructs you in Python by slowly building and establishing skills through techniques such as practice and memorization, then applying them to increasingly difficult problems. By the end of the book you will have the tools needed to begin learning more complex programming topics. Zed likes to tell people that the book gives you your “programming black belt.” What this means is that you know the basics well enough to now start learning programming.

Editorial Reviews

Review

Select Guide Rating

About the Author

Zed A. Shaw is the author of the popular online books Learn Python the Hard Way, Learn Ruby the Hard Way, and Learn C the Hard Way. He is also the creator of several open source software projects and has been programming and writing for nearly 20 years. Most of his free time is devoted to the study of painting and art history.

Product details

  • Publisher ‏ : ‎ Addison-Wesley Professional; 4th edition (June 27, 2017)
  • Language ‏ : ‎ English
  • Paperback ‏ : ‎ 320 pages
  • ISBN-10 ‏ : ‎ 0134692888
  • ISBN-13 ‏ : ‎ 978-0134692883
  • Item Weight ‏ : ‎ 2.31 pounds
  • Dimensions ‏ : ‎ 6.9 x 0.8 x 9 inches
  • Customer Reviews:
    4.4 4.4 out of 5 stars 1,029 ratings

About the author

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

Zed Shaw is an avid guitar player, programmer, and writer whose books teach people all over the world how to write software. His book Learn Python the Hard Way has been read by millions of people around the world. His software has been used by many large and small companies. His essays are often quoted and read by members of many geek communities. He is an entertaining and lively writer, who is sure to keep you laughing and make you think.

Customer reviews

4.4 out of 5 stars
1,029 global ratings

Review this product

Share your thoughts with other customers

Customers say

Customers find the book's learning style and functionality positive. They appreciate the technique of teaching simple concepts in small steps. However, some readers feel the value for money is poor and the last chapters disappointing. Opinions differ on the author's tone - some find it dry and easy to read, while others find it demeaning and condescending.

AI-generated from the text of customer reviews

62 customers mention "Learning style"47 positive15 negative

Customers find the book's learning style effective. They appreciate the approach of teaching simple concepts in small steps, rather than page after page. The book provides an amazing introduction to Python and Django, allowing them to understand almost everything. It's aimed at beginners and allows them to make sense of commands they could look up online. The code is helpful and intuitive, throwing you into writing Python without a lot of flowery wording.

"...While this book is not all encompassing, it allowed me to make sense of commands I could look up on the internet...." Read more

"...Shaw takes you through 52 exercises that will teach you everything from writing your first program (the classic "Hello, World!" program) up..." Read more

"...of the last chapters, because I truly think that this book teaches you the discipline that you will absolutely need to start every other book.. but..." Read more

"...a software developer for over 40 years and this is the best how-to learn programming book I've come upon. Over the years I've taught myself COBOL...." Read more

3 customers mention "Functionality"3 positive0 negative

Customers like the functionality. They say it works well, but can be tedious at times.

"...It can be tedious at times, but it works well. This book is absolutely appropriate for someone with no coding experience...." Read more

"...Worked like a charm. I highly recommend this book to new programmers." Read more

"Excellent up to a certain point, then....." Read more

9 customers mention "Tone"3 positive6 negative

Customers have mixed opinions about the author's tone. Some find the humor dry and easy to read, while others feel the author is demeaning, condescending, and arrogant. They also mention poor writing and grammar.

"...More typing than is necessary. Doesn't explain it very well. Go to YouTube and other sources to fill in the gaps...." Read more

"...He does get you writing simple programs right away. I like his dry sense of humor also." Read more

"I enjoyed the book until Chapter 38... The author starts rambling and I began to hate reading the chapter; Not fun nor interesting at this part.. I..." Read more

"...Lots of "dos and don'ts". I also was appalled at the writing and grammar. I have never seen a book written with contractions!...." Read more

14 customers mention "Value for money"4 positive10 negative

Customers find the book not worth their money and time. They say it's subpar and not fun or interesting, with disappointing last chapters.

"...It was challenging? absolutely but it wasn't fun... it wasn't discovering new things... it was desperation of trying to solve this exercises because..." Read more

"...Once you get to exercise 43 the book is basically useless because it expects you to already be able to code object-oriented programming (OOP)..." Read more

"...Overall this is a very good book and I feel it was worth the $30 bucks I spent on it." Read more

"...dive into mathematics, computer science and stuff... but this book is really bad!..." Read more

Top reviews from the United States

  • Reviewed in the United States on October 20, 2023
    While I have been a programmer of Fortran IV, Assembly Language, C, and some BASH script writing, I could not follow Python which is a "Structured" programing language. I tried a few online courses but I like books, so I ordered this book and I read it first, then I started over but this time started to write a few of the examples. The examples are pretty good and I started to understand the syntax and how to read Python. While this book is not all encompassing, it allowed me to make sense of commands I could look up on the internet. There was one area I thought was lacking, the explanation of 'classes'. It was a topic covered in the book but for myself, I couldn't comprehend was was being said. This is where having an in-person instruction would have helped me out.

    Overall this is a very good book and I feel it was worth the $30 bucks I spent on it.
    2 people found this helpful
    Report
  • Reviewed in the United States on March 21, 2018
    If you are learning Python 3, THIS IS THE BOOK TO GET FIRST.

    "Learn Python 3 the Hard Way" is THE book to get first if you are learning Python. It is organized into exercise chapters that take you through a hands-on experience in learning Python (one of the fastest growing programming languages at the moment). This is not a book that you will read. it is a book you will work through. Zed Shaw takes you through 52 exercises that will teach you everything from writing your first program (the classic "Hello, World!" program) up through lists, dictionaries, loops, and so on. By the time you finish the 52 exercises, you will have a solid foundation for learning more about Python.

    Of all of my books that I am asked to lend in my Python Meet-up group, this is the most popular by far.
    24 people found this helpful
    Report
  • Reviewed in the United States on April 8, 2018
    Before buying this book I heard about LPTHW and the "controversy" around...
    but obviously this is the internet and everyone is entitled say whatever they want so I didnt took them seriously.

    Before reading this book, I've read some C++ concepts in the past (couples of years before) but they were simple as: types, functions, statements.. so nothing complicated, but I went thru this book with a tiny bit of knowledge..

    At the beginning of the book I was amazed at how much fun I has having and how much better I was starting to understand those concepts (that I was already familiar with).
    The way the book is structured its extremely good: making your hands dirty immediately it's really the right thing to do for a beginner.

    It may be obvious for some one but wasn't for me, the fact that you should type everything you see and make it work on your own, and then read and check what is happening. Then type again and again and eventually, even if you don't REALLY understand the DEEPER MEANING of everything, you are still a step further to getting closer.

    So everything was going fine and I was eager to go to the next lesson...

    Till chapter 43 when he introduces the Class/Object..
    I honestly went back on it a couple of times but every time I felt that there was something different... somethings has changed from before... there was no more fun, no more understanding.. but just: DO IT AS I DO AND SHUT UP.
    There was little room for exploration as he presented a semi-empty script with empty classes that you should fill as he would... oh and yea he just introduced you to what a class is like.. so good luck with that.
    You pass from ITS A, HAS A type of explanation to complete an already started script of several different classes with subclasses and inherits.. wtf? I've felt like I jumped 2 chapters...
    It was challenging? absolutely but it wasn't fun... it wasn't discovering new things... it was desperation of trying to solve this exercises because you know that classes are an important topic...

    And from there, it just got worst...

    At chapter 47 you are introduced to an another fundamental topic: TESTS.
    So as usual you start typing and typing and installing modules, you will get excited of all of this new stuff you will learn about... but you will be WRONG... because as soon as you finish he says:
    GO ON INTERNET AND FIND OUT HOW TO USE AND INSTALL EVERYTHING YOU JUST DID.....
    W.T.F... it took me a day to find out in the nose manual that their syntax was the same as unittest but just spelled with the format snake_case...
    As a beginner, and as I have never seen what an test/assert_equal is, I WOULD HAVE APPRECIATED A BIT OF EXPLANATION before sending me online..
    I had to go online and search for OTHER people tutorial about something that I was suppose to learn in this book... WTF AGAIN...

    And from here honestly I just lost interest... he doesn't show anymore the "what you should" see section so you are left on your own... If you don't understand: too bad... If you do understand but misunderstand also too bad... For me was harder trying to understand what HE will have me to do rather than the code itself...

    At the end of the book you will do automatic tests of his text game and deploy it online so he introduces some HTML concepts but honestly I just didn't care anymore and never finished.. and here brings me the major flaw about zed in my opinion.

    He states at the beginning that he doesn't want you to teach everything, but he wants you to be autonomous and be able to understand what to search bla bla... Ok! its a good mentality! But there is a problem.. programming concepts are so deep and so many (even for a subject alone).. that you NEED at least something information to start and only then LEAVE THE REST TO YOU if you want more info...
    Again: if I have to leave the beginner's book to search other tutorials for beginners to understand what has written in my beginner's book... I think that the book failed to do part of his job...

    I then IMMEDIATELY went to PYTHON CRASH COURSE and things just pop out like flowers in spring... and it was because of how zed open my view of how to take a programming book..

    So I recommend this book even despite the BIG disappointment of the last chapters, because I truly think that this book teaches you the discipline that you will absolutely need to start every other book.. but be aware you will not become a expert programmer after just this book... buy this together with PYTHON CRASH COURSE and think of them as one lesson.. typing (LPTHW) and understanding (PCC)
    217 people found this helpful
    Report
  • Reviewed in the United States on December 1, 2017
    I've tried multiple tutorials from multiple sources (Udemy, Lynda, Tuts+, Codecademy, YouTube, etc.), but none of them compare to the LP3THW method. You'll get your hands dirty right away by diving straight into the exercises from the very beginning. You're not bogged down with a ton of theory up front. Instead the theory is gradually revealed as you progress through each exercise. Unfortunately there is one down side, if you want the accompanying videos, you will still need to purchase directly from his website. The Kindle version doesn't provide access to any of the online videos. I know many reviewers wrote negative reviews because of this, but it's how Zed has things set up. When you purchase LP3THW directly from Zed's website, you will be able to get any and all updates related to that purchase, including any new videos. And for those who seem to think Zed has a bad attitude when it comes to teaching, they fail to understand that he clearly states in one of his lessons, it's his goal to ensure that his students can move forward into a PROGRAMMING environment without the need of his ongoing help. I mean, that is the whole point of learning to program, isn't it?
    16 people found this helpful
    Report
  • Reviewed in the United States on March 19, 2018
    I've been a software developer for over 40 years and this is the best how-to learn programming book I've come upon. Over the years I've taught myself COBOL. IBM 360/370 BAL, C, Pascal, C++, SQL, Java, and JavaScript. Mr. Shaw clearly shows that he understands how programmers learn. I liked the book so much, I'm using it to teach 2 of my grandsons how to code with Python 3. I'd recommend this book to anyone, novice or experienced, who wished to learn Python.
    50 people found this helpful
    Report
  • Reviewed in the United States on January 5, 2024
    Good for the basics only. Stop after that.

    Does a horrible job trying to explain objects. Tries to get you to create a game for your first OO project. More typing than is necessary. Doesn't explain it very well. Go to YouTube and other sources to fill in the gaps. Does not explain automated testing either. Some of the utilities are deprecated.
    One person found this helpful
    Report

Top reviews from other countries

Translate all reviews to English
  • CHARLES L L DUARTE
    5.0 out of 5 stars Este é o verdadeiro jeito “Hard” de aprender Python!
    Reviewed in Brazil on March 19, 2022
    A concepção do author em colocar linhas de códigos que você ao repetí-las vai num crescendo de dificuldades que tornam o aprendizado efetivo.
  • eric hall
    5.0 out of 5 stars Python
    Reviewed in Germany on January 19, 2025
    Helped me get a certification in the Python language.
  • Stevinski
    5.0 out of 5 stars Excellant study material that comes with lectures at a reasonable price.
    Reviewed in Canada on February 8, 2021
    Throughout this textbook Zed Shaw takes a very methodical way of explaining python programming. This textbook is the first of the authors two books on python 3.

    This textbook contains 52 exercises of python scripts. There are accompanying lectures for each.
    To get the accompanying lectures, you first must register this book at https://www.informit.com/ as outlined in the preface of the text.

    This textbook takes a more hands on approach and forces you to type it out and debug the code. Learning through this book is the harder way but once you do it you understand it more by experience.

    if you have any questions or concerns about this text on your journey you can email the author and he can give you guidance at help@learncodethehardway.org.

    This textbook is the same as Learn Python The Hard Way but for the python 3 interpreter.

    I accidentally started studying Learn python The Hard way for the python 2 interpreter using the python 3 interpreter and I have been looking this text for reference when im stuck.

    I am very impressed by his first book so this text should only be an improvement.

    I would recommend this as the first book to anyone looking to learn python programming.

    Quick outlay of his textbooks:
    Learn Python The Hard Way - textbook for the older python 2 interpreter that comes with lectures on dvd
    Learn Python 3 the Hard Way - Same as "Learn Python The Hard way" but revised for python3
    Learn More Python 3 the hard way - The sequel to "Learn Python 3 the Hard Way" that comes with accompanying lectures once you register it.
  • Manuel Alejandro Mijangos González
    5.0 out of 5 stars Buen libro
    Reviewed in Mexico on August 4, 2019
    Me gustó que tiene muchos ejercicios para practicar y cubre muchas cosas básicas, está muy bien para principiantes
  • Bridget Kelly
    5.0 out of 5 stars Brilliant for Beginners, and an Intermediate Refesher
    Reviewed in the United Kingdom on April 14, 2020
    I originally purchased this book for a senior developer who wanted to go from Java to Python to keep his skills updated. When I got the book I had a quick flick through and I knew I would need to purchase it myself. I'm a full stack developer myself and last year I came over to backend and started learning Python, then jumped straight onto Django (advanced, got pretty good at it) but I found that when it came to writing some functions, classes I was still struggling as I didn't understand partly the logic and words like 'args' and 'kwargs' , functions how to write them, let alone the ruling of what if , else statements, as it wasn't explained online very well, no matter what course or tutorial I took, other issue was what version had I been learning Python in? Was it 2/3 god knows, no one ever wrote down the version.. hence why some of my code wouldn't work and left me in a confused sense of thought.

    This book since reading it yesterday i've been able to jump back onto my Django / Python projects with a new found confidence, it now makes a lot more sense and has given me a real good fresher and understanding on the fundamentals. The author is brilliant and I really do look forward to purchasing more of these books as he makes it quite funny to learn python, and the coding examples are brilliant. The questions are also brilliant, explains these in a human readable context, very much in the way is wysiwyg.

    Highly Recommend this book to any beginner, or any mid level developer who needs a refresh. I look forward to seeing more advanced books now from this author.