You know Pythons syntax, but when it comes to real projects you freeze or second-guess yourself. You are not alone. Many learners struggle to turn knowledge into action, even after completing tutorials or coursework. What if you could practice daily with focused challenges that build confidence, fluency, and muscle memory for writing clean, efficient, and professional Python code?
- 50 focused exercises: build muscle memory for core and advanced language features.
- Built-in data structures: write shorter, faster code with lists, tuples, dictionaries, and sets.
- Functional techniques: unlock map, filter, and comprehensions for elegant data pipelines.
- Object-oriented drills: design, create, and extend classes that stay maintainable.
- Iterators and generators: process large data streams while saving memory and time.
- Full solutions and explanations: verify your approach and learn professional idioms.
Python Workout by veteran instructor Reuven M. Lerner offers a practical, workbook-style route to skill mastery.
Each self-contained challenge targets a specific concept, then walks you through a clear, annotated solution. The progressive sequence mirrors real coding tasks so readers advance naturally from fundamentals to powerful patterns.
Finish the book able to read, refactor, and write Python that stands up in production code reviews. The habits you form here stick because you learn by doing, not by memorizing.
Ideal for developers who know basic syntax and need fluency for work, study, or personal projects.
Get a free eBook (PDF or ePub) from Manning as well as access to the online liveBook format (and its AI assistant that will answer your questions in any language) when you purchase the print book.
The only way to master a skill is practice, practice, practice. That’s exactly what you’ll do in this book! In this instantly-valuable book you’ll work through 200 carefully selected exercises that flex your programming muscles.
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.
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
About the technologyBecome 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 bookPython 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 readerFor beginning to intermediate Python programmers.
About the authorReuven M. Lerner teaches Python at companies around the world and at LernerPython.com. He also wrote
Pandas Workout.
Table of Contents1 Improving your Python with practice
2 Numeric types
3 Strings
4 Lists and tuples
5 Dictionaries and sets
6 Files
7 Functions
8 Functional programming with comprehensions
9 Modules and packages
10 Objects
11 Iterators and generators
12 Where to from here?