Python Programming Exercises, Gently Explained

Double-tap to zoom
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
Brief content visible, double tap to read full content.
Full content visible, double tap to read brief content.

Book details

Brief content visible, double tap to read full content.
Full content visible, double tap to read brief content.

Book overview

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
Brief content visible, double tap to read full content.
Full content visible, double tap to read brief content.

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

    Enhanced typesetting: Enabled

    Enhanced typesetting improvements offer faster reading with less eye strain and beautiful page layouts, even at larger font sizes.
  • X-Ray: Not Enabled
  • Word Wise: Not Enabled

    Word Wise: Not Enabled

    Word Wise helps you read harder books by explaining the most challenging words in the book.
  • Print length: 238 pages

    Print length: 238 pages

    The estimated length is calculated using the number of page turns on a Kindle, using settings to closely represent a physical book.
  • Page Flip: Enabled

    Page Flip: Enabled

    Page Flip is a new way to explore your books without losing your place.

About the author

Follow authors to get new release updates, plus improved recommendations.
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.

Brief content visible, double tap to read full content.
Full content visible, double tap to read brief content.