Holiday Hosting Essentials for the Kitchen
Enjoy fast, free delivery, exclusive deals, and award-winning movies & TV shows.
Buy new:
-48% $20.75
FREE delivery Monday, February 9 on orders shipped by Amazon over $35
Ships from: Amazon.com
Sold by: Amazon.com
$20.75 with 48 percent savings
List Price: $39.99 Image
Get Fast, Free Shipping with Amazon Prime
FREE delivery Monday, February 9 on orders shipped by Amazon over $35
Or Prime members get FREE delivery Friday, February 6.
In Stock
$$20.75 () Includes selected options. Includes initial monthly payment and selected options. Details
Price
Subtotal
$$20.75
Subtotal
Initial payment breakdown
Shipping cost, delivery date, and order total (including tax) shown at checkout.
Shipper / Seller
Amazon.com
Amazon.com
Shipper / Seller
Amazon.com
Returns
FREE 30-day refund/replacement
FREE 30-day refund/replacement
This item can be returned in its original condition for a full refund or replacement within 30 days of receipt.
Read full return policy
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.80
LIKE NEW!!! Has a red or black remainder mark on bottom/exterior edge of pages. LIKE NEW!!! Has a red or black remainder mark on bottom/exterior edge of pages. See less
FREE delivery February 12 - 18. Details
Or fastest delivery February 10 - 12. Details
Only 1 left in stock - order soon.
$$20.75 () Includes selected options. Includes initial monthly payment and selected options. Details
Price
Subtotal
$$20.75
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.
Ships from and sold by bellwetherbooks.
Added to

Sorry, there was a problem.

There was an error retrieving your Wish Lists. Please try again.

Sorry, there was a problem.

List unavailable.
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

Get new release updates & improved recommendations
Something went wrong. Please try your request again later.

Invent Your Own Computer Games with Python, 4th Edition Paperback – Illustrated, December 16, 2016

4.7 out of 5 stars (548)

{"desktop_buybox_group_1":[{"displayPrice":"$20.75","priceAmount":20.75,"currencySymbol":"$","integerValue":"20","decimalSeparator":".","fractionalValue":"75","symbolPosition":"left","hasSpace":false,"showFractionalPartIfEmpty":true,"offerListingId":"cmBkiRECY54Qtc4VKe%2Fv%2FAMdr4eOqvDox9ey%2FkD3sHMRnCKJbmMP05JT3oVwvyuQAgP4rm9XwjR%2FV4l69gTfGK7eQUdr63i7SxKCfjq4%2BaHeBG9bVCr54dLfwqBL7CDVVTt2eYkhD0b9C9nXAX6lKw%3D%3D","locale":"en-US","buyingOptionType":"NEW","aapiBuyingOptionIndex":0}, {"displayPrice":"$14.80","priceAmount":14.80,"currencySymbol":"$","integerValue":"14","decimalSeparator":".","fractionalValue":"80","symbolPosition":"left","hasSpace":false,"showFractionalPartIfEmpty":true,"offerListingId":"cmBkiRECY54Qtc4VKe%2Fv%2FAMdr4eOqvDozzO%2BdjgBP8BgSFhwFDLJCQX%2BsFAgfUFFervvCdU7j1v6z6FpsqmOvdtz%2FG1R81qc5koEbViJ%2Bv6XKoEHADRzYXQzbz%2Fotn3NMH7NqjJ3gPOVnZztYsYyQh%2FDT3qiU5giyd39tmHqr94XDZf6nn933Q%3D%3D","locale":"en-US","buyingOptionType":"USED","aapiBuyingOptionIndex":1}]}

Purchase options and add-ons

Invent Your Own Computer Games with Python will teach you how to make computer games using the popular Python programming language—even if you’ve never programmed before!

Begin by building classic games like Hangman, Guess the Number, and Tic-Tac-Toe, and then work your way up to more advanced games, like a text-based treasure hunting game and an animated collision-dodging game with sound effects. Along the way, you’ll learn key programming and math concepts that will help you take your game programming to the next level.

Learn how to:
–Combine loops, variables, and flow control statements into real working programs
–Choose the right data structures for the job, such as lists, dictionaries, and tuples
–Add graphics and animation to your games with the pygame module
–Handle keyboard and mouse input
–Program simple artificial intelligence so you can play against the computer
–Use cryptography to convert text messages into secret code
–Debug your programs and find common errors

As you work through each game, you’ll build a solid foundation in Python and an understanding of computer science fundamentals.

What new game will you create with the power of Python?

The projects in this book are compatible with Python 3.

Frequently bought together

This item: Invent Your Own Computer Games with Python, 4th Edition
$19.70
Get it as soon as Thursday, Feb 19
Sold by RoseBookz and ships from Amazon Fulfillment.
+
$27.53
Get it as soon as Monday, Feb 9
In Stock
Ships from and sold by Amazon.com.
+
$17.34
Get it as soon as Tuesday, Feb 17
Sold by RoseBookz and ships from Amazon Fulfillment.
Total price: $00
To see our price, add these items to your cart.
Details
Added to Cart
Some of these items ship sooner than the others.
Choose items to buy together.

Customers also bought or read

Loading...

From the Publisher

Invent Your Own Computer Games with Python, 4E on black background with No Starch Press logo
Review of Invent Your Own Computer Games with Python, 4E on black background
Review of Invent Your Own Computer Games with Python, 4E on black background
A man wearing a driving cap and red plaid shirt. He is seated in a cafe.

About the Author

Al Sweigart is a software developer and teaches programming to kids and adults. He has written several Python books, including Automate the Boring Stuff with Python and Making Games with Python & Pygame.

No Starch Press logo. A black circle with a white iron and a star in the center.

About the Publisher

No Starch Press has published the finest in geek entertainment since 1994, creating both timely and timeless titles like Python Crash Course, Python for Kids, How Linux Works, and Hacking: The Art of Exploitation. An independent, San Francisco-based publishing company, No Starch Press focuses on a curated list of well-crafted books that make a difference. They publish on many topics, including computer programming, cybersecurity, operating systems, and LEGO. The titles have personality, the authors are passionate experts, and all the content goes through extensive editorial and technical reviews. Long known for its fun, fearless approach to technology, No Starch Press has earned wide support from STEM enthusiasts worldwide.

Editorial Reviews

Review

“Pretty close to the ultimate how-to-learn python book. First, it combines an easy ramp up from expecting you to know virtually nothing to having you try out – and understand – Python. Second, it provides the code, the tools, and the explanations required for you build a number of increasingly sophisticated games and the know-how to branch out to creating games completely on your own.”
—Computerworld

“Many of the games include flowcharts so the reader will better understand the logic needed to complete the game, and I was especially happy to see a few chapters focus on topics not necessary limited to games such as Cartesian coordinates and using the built-in Debugger.”
—GeekDad

“This is an excellent way to learn Python, if you are a kid or not. Little kids can learn with their adult guide, and older kids will eat this book up in an afternoon or two.”
—Greg Laden, National Geographic's ScienceBlogs

“This book is a great entry point for beginning programmers that 'gamifies' coding, allowing readers to immediately apply the concepts covered, rather than teaching basics with little application.”
—School Library Connection

"If games are your thing, this would be the perfect book to learn Python."
—Rajat, @argent_codes

About the Author

Al Sweigart is a software developer and teaches programming to kids and adults. He has written several Python books, including Automate the Boring Stuff with Python and Making Games with Python & Pygame.

Product details

  • Publisher ‏ : ‎ No Starch Press
  • Publication date ‏ : ‎ December 16, 2016
  • Edition ‏ : ‎ 4th
  • Language ‏ : ‎ English
  • Print length ‏ : ‎ 376 pages
  • ISBN-10 ‏ : ‎ 1593277954
  • ISBN-13 ‏ : ‎ 978-1593277956
  • Item Weight ‏ : ‎ 1.38 pounds
  • Reading age ‏ : ‎ 10 years and up
  • Dimensions ‏ : ‎ 7.06 x 0.83 x 9.25 inches
  • Best Sellers Rank: #99,010 in Books (See Top 100 in Books)
  • Customer Reviews:
    4.7 out of 5 stars (548)

About the author

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

Al Sweigart is a software developer and tech book author living in Houston. He has written several programming books for beginners, including Automate the Boring Stuff with Python. His books are freely available under a Creative Commons license at his website https://inventwithpython.com.

Customer reviews

4.7 out of 5 stars
548 global ratings

Customers say

Customers find this Python programming book excellent for beginners, providing an example-driven introduction to the language while helping them learn the basics through game creation. Moreover, the book is fun to follow, with many ways to modify the games, and one customer notes its thorough code explanations. Additionally, the writing quality receives positive feedback.
AI Generated from the text of customer reviews

Select to learn more

22 customers mention python knowledge, 21 positive, 1 negative
Customers find the book excellent for beginners, providing an example-driven introduction to Python and helping them learn the basics while creating games, with one customer noting it goes beyond just game creation.
Learing a great deal about python. Good starter book. Making use of it with some high school students interested in programming.Read more
This is a very readable book. Lots of examples, and step-by-step instructions....Read more
...player-missile graphics and sound, this books provides a good introduction to Python by building games and providing insights into how to build your...Read more
This is a great book, especially for beginners. You learn the basics while creating games!...Read more
10 customers mention fun to read, 10 positive, 0 negative
Customers find the book fun to read, enjoying the games and many ways to modify them, with one customer noting it's a great way to learn Python programming.
Super fun and interactive!Read more
Well chosen material, starting basic and ramping up nicely. Great games. The approach of having students type in the programs is a good idea!...Read more
...The writing in this book is tight, engaging, entertaining, and just seriously impressive, and the projects are super fun too....Read more
book itself is very fun, you do really fun things there, it really worth to pay for it....Read more
8 customers mention code explanation, 6 positive, 2 negative
Customers appreciate the code explanations in the book, finding them thorough and step-by-step, with one customer noting how they help with troubleshooting.
...comes to a concept that the reader may not be familiar with, he explains it clearly and thoroughly using simple English, and then demonstrates why...Read more
This is a very readable book. Lots of examples, and step-by-step instructions....Read more
...So, I like a lot about this book, however, I feel it is incomplete without such exercises, and so will give it four stars instead of five.Read more
Well chosen material, starting basic and ramping up nicely. Great games. The approach of having students type in the programs is a good idea!...Read more
5 customers mention writing quality, 4 positive, 1 negative
Customers find the book well written, with one customer noting it is essential for writing any kind of software.
Well written book that lets you apply the concepts quickly. It’s.Read more
...It's well written and engaging! Strongly recommended to any computer science teachers or anyone who wants to learn coding....Read more
...in so many fundamental programming topics that are essential for writing any kind of software, not just games....Read more
...Another warning is some of the code is really long, lots of typing....Read more

Top reviews from the United States

  • Reviewed in the United States on November 6, 2025
    Format: PaperbackVerified Purchase
    This book is a fun way to learn Python programming by teaching the language elements by writing games. From simple statements, using the debugger, designing programs logically with flowcharts, processing a main event loop, to incorporating player-missile graphics and sound, this books provides a good introduction to Python by building games and providing insights into how to build your own games.
    One person found this helpful
    Report
  • Reviewed in the United States on October 23, 2017
    Format: PaperbackVerified Purchase
    I just finished reading "Invent Your Own Computer Games with Python", and it's my new all-time favorite book for beginners who want to learn how to program. Al's outdone himself with this one. He does an incredible job of teaching the reader how to program in Python from scratch; whenever he comes to a concept that the reader may not be familiar with, he explains it clearly and thoroughly using simple English, and then demonstrates why the concept is useful.

    The writing in this book is tight, engaging, entertaining, and just seriously impressive, and the projects are super fun too. I particularly liked the Tic-Tac-Toe project: I thought it was really clever to have the reader implement an AI for one of their games so early on in the book, instead of burying something fun like that in a later chapter.

    I don't know if Al's gotten way better at writing over the past few years, or if he's gotten a great editor, or some combination of the two; but whatever the cause, this book really shines. When I read his book "Making Games with Python & Pygame" (published in 2012), I found that he sometimes explained concepts using frustratingly vague language, or introduced them in an order that bothered me, and I also noticed a few typos and bugs in that book's prose and code; I found basically zero such issues in "Invent Your Own Computer Games with Python".

    The only main thing I wish he'd change is that he uses mixedCase for his variable and function names, but snake_case is the naming standard in Python programs (documented in PEP8). It's not obvious to me why he prefers mixedCase, and this seems like something that shouldn't have survived to the fourth edition of this book. All in all, though, this is a problem I'm more than willing to overlook, given how otherwise excellent this book is.

    From now on, whenever a friend asks me what the best way is of learning to program, I'm going to point them directly to this book. Keep up the great work, Al!
    52 people found this helpful
    Report
  • Reviewed in the United States on October 26, 2025
    Format: PaperbackVerified Purchase
    I love video games im learning blender substance and so much more to better make my own assets but this book helps me with the basics with python games im usually into Unity or Unreal but I can say this has spread a new light on game development using this book
    One person found this helpful
    Report
  • Reviewed in the United States on October 9, 2017
    Format: PaperbackVerified Purchase
    Its a good book but with a warning. You learn a lot about logic and how to design your code/app. He explains each section of the code to you in detail about what it is doing. Right away he teaches you about debugging and how to use that to figure out how the code works. I'd recommend the book for any adult, I would not recommend giving it to your 10 year old kid as they may lose interest pretty quick. Some of the logic is definitely for someone with a bit of previous in school programming or past history of it. I've done simple coding and took Java in college and I even had to really think and investigate on some of the logic. I'd advise you to go over the book yourself before giving to your child to be able to help explain. Another warning is some of the code is really long, lots of typing. And I'd suggest downloading the source files as the code in the book isn't always correct to begin with so your app may not run.
    28 people found this helpful
    Report
  • Reviewed in the United States on April 28, 2025
    Format: PaperbackVerified Purchase
    "Invent Your Own Computer Games with Python" is a truly fantastic book. It goes far beyond just teaching game creation; it lays a solid foundation in so many fundamental programming topics that are essential for writing any kind of software, not just games. You really learn the core concepts needed to succeed.

    However, the way it uses game development to teach these concepts is definitely the best part! It makes learning engaging and practical. After working through this book, I genuinely feel equipped to create a huge range of projects, perhaps even anything I can imagine building.

    Honestly, this was the best purchase I've made in a long time, and that's saying something because I'm not usually a huge fan of reading! If you want to learn Python and programming in a fun, hands-on way that delivers real results, I highly recommend this book. It truly empowers you to start inventing your own creations.
  • Reviewed in the United States on April 24, 2022
    Format: KindleVerified Purchase
    I'm a programmer and I'm teaching Python to my 7-year-old son. I decided to start with this book. It took us over a year to get through all the chapters. My son typed in all the code for each chapter without copying and pasting. After that I read the chapter to him, explaining the code. Then he had fun playing and modifying the games! My son's review is below:

    --------------------------

    Dear Mr. Sweigart, I really enjoyed the games in your book. There are many ways of modifying the games, like in the dodger game, you can make it so that every time your score gets to 1000, the baddies fall faster by 1. Also, you can change all the images and music to be like Zelda and you can make it 2 players. In Sounds and Images, you can make another food that makes you smaller. I like the improved hangman from chapter 9 because it has different levels of difficulty. Please continue to write more books on this topic.
    24 people found this helpful
    Report

Top reviews from other countries

Translate all reviews to English
  • Correcaminos
    4.0 out of 5 stars Bien para empezar
    Reviewed in Spain on July 18, 2017
    Format: PaperbackVerified Purchase
    Quizás hecho en falta más programas con entorno gráfico.Al final trata sobre pygame. Por lo demás muestra los programas de forma didáctica y amena
    Report
  • Chandra
    5.0 out of 5 stars Worthy buy
    Reviewed in India on August 12, 2024
    Format: PaperbackVerified Purchase
    Bought this for my son who is in high school. Good to see him stuck to this book and coding on his own. Python is crucial in today’s context and hopefully his love for code grows further. Partly thanks to this book which teaches via a game-like narration.
  • Stargazer
    5.0 out of 5 stars Extremely useful and much much better than all the others I ...
    Reviewed in the United Kingdom on May 25, 2017
    Format: PaperbackVerified Purchase
    Extremely useful and much much better than all the others I have tried. It is carefully arranged so that progression and additions to any initial code can be clearly followed - simply by numbering lines of code and using bold print. This makes it SO much better other books that claim to be for beginners. One drawback that it does share with its competitors is the absence of a distinct and obviously different font for code words and lines of code. As printed, the difference is too slight unless concentration is high. However I still rate it very highly.
  • Anonymous
    5.0 out of 5 stars Arrived safe and sound!
    Reviewed in Canada on September 7, 2024
    Format: PaperbackVerified Purchase
    Got here on time and in good condition. Looking forward to reading it.
  • Gabriel
    5.0 out of 5 stars Exceptional Quality
    Reviewed in Japan on February 12, 2024
    Format: PaperbackVerified Purchase
    I had an excellent experience with Rarewaves-USA; they shipped my order promptly and everything arrived in perfect condition.

    The book "Invent Your Own Computer Games with Python" is fantastic. The quality of the book exceeded my expectations and I am thrilled with my purchase. It really doesn't get any better than this!

    Highly recommend both the seller and the book to anyone interested in programming or game development. Truly a great find!
    Customer image
    Gabriel
    5.0 out of 5 stars
    Exceptional Quality

    Reviewed in Japan on February 12, 2024
    I had an excellent experience with Rarewaves-USA; they shipped my order promptly and everything arrived in perfect condition.

    The book "Invent Your Own Computer Games with Python" is fantastic. The quality of the book exceeded my expectations and I am thrilled with my purchase. It really doesn't get any better than this!

    Highly recommend both the seller and the book to anyone interested in programming or game development. Truly a great find!
    Images in this review
    Customer image Customer image