$0.99

These promotions will be applied to this item:

Some promotions may be combined; others are not eligible to be combined with other offers. For details, please see the Terms & Conditions associated with these promotions.

You've subscribed to ! We will preorder your items within 24 hours of when they become available. When new books are released, we'll charge your default payment method for the lowest price available during the pre-order period.
Update your device or payment method, cancel individual pre-orders or your subscription at
Your Memberships & Subscriptions

How it works

  1. Choose your delivery method
  2. Send now or schedule for later
  3. Add your personal message
  4. Recipients can read on any device

These ebooks can only be redeemed by recipients in the US. Redemption links and eBooks cannot be resold.

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.

Python Programming Exercises, Gently Explained Kindle Edition

4.6 out of 5 stars (106)

Many books and websites have aggressive programming challenges for top coders. However, this book is for the rest of us. We want challenges that improve our coding skills, not leave us confused and discouraged. Other tutorials and books have taught you the basics of Python, but the 42 programming exercises in this book let you practice what you've learned. Selected for their simplicity, these programming problems include gentle explanations of the problem, the prerequisite coding concepts you’ll need to understand the solution, and helpful templates to put together the programs if you have trouble starting from scratch.

This is the perfect book for beginner and intermediate programmers who want to test their Python skills but aren’t ready to begin professional-level software development. You don’t need the frustration of being expected to create complex algorithms and computer science theory; you need a large set of programming challenges that meet you at your level, with gentle explanations.

The coding exercises in this book include:

• Temperature conversion
• Fizz buzz
• Reading and writing files
• Find and replace text
• Calculating average, median, and mode
• Random dice rolling
• Password generation
• Date validation
• Rock, paper, scissors
• ASCII art
• Collatz sequence
• Bubble sort

Customers also bought or read

Loading...

Product details

  • ASIN ‏ : ‎ B0BGYJ7G6T
  • Accessibility ‏ : ‎ Learn more
  • Publication date ‏ : ‎ September 29, 2022
  • Language ‏ : ‎ English
  • File size ‏ : ‎ 2.5 MB
  • Simultaneous device usage ‏ : ‎ Unlimited
  • Screen Reader ‏ : ‎ Supported
  • Enhanced typesetting ‏ : ‎ Enabled
  • X-Ray ‏ : ‎ Not Enabled
  • Word Wise ‏ : ‎ Not Enabled
  • Print length ‏ : ‎ 238 pages
  • Page Flip ‏ : ‎ Enabled
  • Best Sellers Rank: #125,277 in Kindle Store (See Top 100 in Kindle Store)
  • Customer Reviews:
    4.6 out of 5 stars (106)

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.6 out of 5 stars
106 global ratings

Customers say

Customers find the book to be a great teacher, with one mentioning it includes helpful hints for completing exercises. Moreover, the book is fun to use, and one customer notes it serves as a great next step after reading "Automate the Boring Stuff with Python."
AI Generated from the text of customer reviews

Select to learn more

7 customers mention language learning, 6 positive, 1 negative
Customers find the book helpful for learning Python, with one customer noting it includes hints to complete exercises and another mentioning it covers most of the basics.
...Al's a great author and teacher; I loved his Automate the Boring Stuff book, and somehow, with help from his cat, he's made learning Python...Read more
...Great book and great teacher, easy to understand instructions.Read more
...The description for each exercise has been clear and includes hints to help complete them before we need to check the solution when stuck....Read more
...little collection of fun exercises that will teach you practical ways of using the language, without overwhelming....Read more
3 customers mention fun, 3 positive, 0 negative
Customers find the book fun to read, with one mentioning it serves as a great next step after "Automate the boring stuff with Python."
...I'm no stranger to Python, but this book is fun 'cos I can whack together a solution to the problem presented, see that it works, and then compare...Read more
...Python Programming Exercises is an awesome little collection of fun exercises that will teach you practical ways of using the language, without...Read more
Great next step for Automate the boring stuff with Python....Read more

Top reviews from the United States

  • Reviewed in the United States on August 23, 2025
    Format: KindleVerified Purchase
    Great book, it was challenging for me. I loved it, I didn’t want to do anything else until I finished it.
    It made me change my way of thinking and helped me to understand all the processed involved behind the scenes, when I use a python function.
    Also made me think that everything I do in python can be done manually, but more important is that somebody else a developer, at sometime realized something was missing in python, and found it was possible to create a global function in python to make repetitive tasks easier for all the other users of python and contributed to the project.
    Great book and great teacher, easy to understand instructions.
  • Reviewed in the United States on October 9, 2022
    Format: KindleVerified Purchase
    I've often recommended Automate the Boring Stuff with Python. Too often, Python learning resources become bogged down with the details and abstractions of a programming language, increasing the risk that the student will give up before understanding (and getting a sense of enjoyment from) how the knowledge can be applied in the real world. Al has done it again. Python Programming Exercises is an awesome little collection of fun exercises that will teach you practical ways of using the language, without overwhelming. And at this price, it's a no brainer.
    13 people found this helpful
    Report
  • Reviewed in the United States on October 17, 2022
    Format: KindleVerified Purchase
    For just a buck, this was an easy insta-buy for me. I'm no stranger to Python, but this book is fun 'cos I can whack together a solution to the problem presented, see that it works, and then compare my solution to what Al presents. It's interesting to see the different approaches we take to some of these, and it's encouraging to see that, yes, I kinda know what I'm doing (most of the time). For just one dollar, it's a great value - having fun for just a buck? Can't go wrong with this one!
    10 people found this helpful
    Report
  • Reviewed in the United States on July 7, 2024
    Format: KindleVerified Purchase
    This book is great for practicing Python. It’s exactly as advertised. It provides a problem and then provides additional context and hints on how to approach the problem if it’s needed. The book does not teach Python but recommends references that go along with each problem.
    2 people found this helpful
    Report
  • Reviewed in the United States on October 17, 2022
    Format: KindleVerified Purchase
    I bought this book as I'm currently trying to learn, relearn a few programming languages, and translate some of my knowledge from Stata/Mata programming to other software, including Python, Lua, Julia, among others.
    This small book brings a set of exercises that could be great for most first-time programmers/learners. It covers most of the basics, and I can see using this in a classroom not only for Python, but other languages as well. (sometimes finding engaging exercises is hard).
    Do not expect to be challenged, or become an expert in python. However, if you have some time to spare, and want to get a hold of the basics, this is definitely recommended (Especially for the Price).
    9 people found this helpful
    Report
  • Reviewed in the United States on September 16, 2023
    Format: KindleVerified Purchase
    The book is helping me identify the areas where I need more practice. The description for each exercise has been clear and includes hints to help complete them before we need to check the solution when stuck.

    Happy with it.
    2 people found this helpful
    Report
  • Reviewed in the United States on October 24, 2022
    Format: KindleVerified Purchase
    Really excited to be able to use this resource for practicing my python skills and improving! Al's a great author and teacher; I loved his Automate the Boring Stuff book, and somehow, with help from his cat, he's made learning Python something I don't dread anymore.
    3 people found this helpful
    Report
  • Reviewed in the United States on January 26, 2024
    Format: KindleVerified Purchase
    Basically it's for those who, want to and probably don't know how too, or haven't started a program, even a simple one, we all need the experience and practical to start somewhere, this could help you to start.

Top reviews from other countries

Translate all reviews to English
  • Jamin Kauf
    5.0 out of 5 stars Anwendendes Lernen bleibt unersetzbar
    Reviewed in Germany on October 15, 2022
    Format: KindleVerified Purchase
    Der beste Weg, etwas zu lernen, ist die angeleitete Praxis.
    In klassischer Sweigart-Manier wird man hier als Leser*in vor Probleme gestellt, die es zu lösen gilt. Für jede Aufgabe gibt es mehrere Stufen von Hinweisen - angefangen bei kleinen Tipps bis zur ganzen Lösung.
    Persönlich sagt mir auch die (geringe) Menge an Humor in Sweigarts Büchern zu, das ist allerdings subjektive Präferenz.
    Report
  • SeekingGood
    5.0 out of 5 stars Very good!
    Reviewed in Canada on December 13, 2024
    Format: KindleVerified Purchase
    Very good!
  • CHARLES L L DUARTE
    5.0 out of 5 stars Conteúdo prático de valor.
    Reviewed in Brazil on January 2, 2024
    Format: KindleVerified Purchase
    O autor é famoso e possui livros de referência em Python. Este tem o foco em exercícios muito bem detalhados.
  • G P
    5.0 out of 5 stars Amazing book
    Reviewed in the United Kingdom on October 19, 2023
    Format: KindleVerified Purchase
    This really is an amazing book for someone wanting to do hands-on python project. Highly recommended.
  • Cliente Amazon
    5.0 out of 5 stars Phyton
    Reviewed in Mexico on March 30, 2025
    Format: KindleVerified Purchase
    Es muy claro
    Y fácil de seguir

Report an issue


Does this item contain inappropriate content?
Do you believe that this item violates a copyright?
Does this item contain quality or formatting issues?