Skip to Content
Python Workout, Second Edition
book

Python Workout, Second Edition

by Reuven M. Lerner
December 2025
Beginner to intermediate
240 pages
7h 7m
English
Manning Publications

Overview

Practice makes perfect Python!

The only way to master a skill is practice, practice, practice. That’s exactly what you’ll do in Python Workout, Second Edition! In this instantly-valuable book you’ll work through 200 carefully selected exercises that flex your programming muscles.

In Python Workout, Second Edition you’ll find 200 exercises, including:

  • Working with text using strings
  • Mastering dictionaries and sets
  • Reading, writing, and manipulating files
  • Functional programming with comprehensions
  • Python modules and packages
  • Creating iterators and generators

In Python Workout you’ll practice core Python language features and techniques that reinforce the programming patterns you’ll use every day and build the skills you need to troubleshoot your programs.

About the Technology
Become a champion Python programmer by making its most powerful features second nature! In this unique book, internationally-recognized Python trainer Reuven Lerner builds your mental muscle by guiding you through 200 targeted exercises.

About the Book
Python Workout, Second Edition is a hands-on training program designed to boost your productivity and code quality. You’ll practice everything from basics like strings and dictionaries to techniques for writing elegant, data-agnostic code with dynamic typing, generic functions, and comprehensions. Each exercise includes a detailed solution along with additional challenges that help you push your skills even farther.

What's Inside
  • Lock in essential Python skills
  • Improve your code readability and maintainability
  • Prepare for AI-assisted workflows


About the Reader
For beginning to intermediate Python programmers.

About the Author
Reuven M. Lerner teaches Python at companies around the world and at LernerPython.com. He also wrote Pandas Workout.

Quotes
Perfect for someone who has started learning Python.
- Cheuk Ting Ho, JetBrains

Chock-full of good examples.
- Jason C. McDonald Author of Dead Simple Python

Crucial for writing clean, efficient, and maintainable code in big tech.
- Heng Zhang, Salesforce

So much better than just watching videos or reading reference material.
- Jim Welch, Microsoft

The best way to truly understand and use Python correctly!
- Marco Kreienbrink, NeustaSD

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Python Workout

Python Workout

Reuven M. Lerner
Python Illustrated

Python Illustrated

Maaike van Putten, Imke van Putten
Python in a Nutshell, 4th Edition

Python in a Nutshell, 4th Edition

Alex Martelli, Anna Martelli Ravenscroft, Steve Holden, Paul McGuire

Publisher Resources

ISBN: 9781633435353Publisher SupportOtherPublisher WebsitePurchase Link