Overview
Learn Python by figuring things out.
Learning to code isn't about memorizing commands. It's about learning how to solve problems.
Learn to Code by Solving Problems, 2nd Edition takes a different approach to teaching Python. Instead of introducing programming concepts in isolation, each chapter begins with an interesting challenge drawn from real programming competitions. You'll tackle problems involving games, sports, music, and everyday situations, learning the Python you need as you go.
You'll learn to plan a solution, write the code, test your work, and figure out what went wrong when something doesn't work. Step-by-step explanations show you not just what to type, but why your solution works.
And here's the fun part: You can submit your solutions to online programming judges that test your code and give you feedback. Did your code pass? Great. Didn't quite get it? Find out why, fix it, and try again.
You'll learn how to:
- Break unfamiliar problems into manageable steps
- Write Python programs using variables, loops, functions, and data structures
- Plan solutions before jumping into code
- Test your programs, track down bugs, and improve your solutions
- Build problem-solving skills that carry over to other programming languages
No programming experience required. Just curiosity and a willingness to tackle the next challenge.
What's New in the Second Edition
- New instruction on analyzing problems and planning solutions before writing code
- Expanded coverage of testing, debugging, and understanding the roles of variables
- A new chapter on using generative AI as a programming tutor, with an emphasis on learning rather than simply generating answers
The AI material is optional; readers can work through the book without using AI tools.
While major retailers like Amazon may carry Learn to Code by Solving Problems, 2nd Edition, we specialize in bulk book sales and offer personalized service from our friendly, book-smart team based in Portland, Oregon. We’re proud to offer a Price Match Guarantee and a streamlined ordering experience from people who truly care.
We’re trusted by over 75,000 customers, many of whom return time and again. Want proof? Just check out our 25,000+ customer reviews—real feedback from people who love how we do business.
Prefer to talk to a real person? Our Book Specialists are here Monday–Friday, 8 a.m. to 5 p.m. PST and ready to help with your bulk order of Learn to Code by Solving Problems, 2nd Edition.