r/learnpython • u/ompossible • 2d ago
Looking for a good Python exercise book (Beginner to Advanced)
I have recently completed the basics of Python and want to improve my problem solving skills.
Can anyone recommend a good exercise book that starts with basic problems and gradually moves to intermediate and advanced ones? Preferably with solutions included.
Would love to hear your recommendations. Thanks!
12
Upvotes
4
u/Available_Safe1818 2d ago
try codewars. or just make your own programs/projects.
1
u/EnvironmentalDot9131 1d ago
That's the best one
3
u/revcraigevil 1d ago
Python Crash Course https://ehmatthes.github.io/pcc_3e/
1
u/Katinkia 1d ago
https://poppagestudio.etsy.com/listing/4595966854
1
u/acfot 1d ago
Honestly I never bought an exercise book for this, I finished the basics on W3Schools and then just started building tiny stuff, a guessing game, a calculator, that kind of thing, and that's what actually made it stick. The book-style exercises never really worked for me because I'd read the solution and think I understood it and then forget it the next day. If you do want something structured I'd look at the free exercise sets on W3Schools first since you can run them right there, and then move to small projects once the basics feel easy. Not sure about a single book that goes beginner to advanced with solutions though, I haven't found one myself.
1
u/desrtfx but other languages pro 1d ago
https://codingbat.com/python
https://exercism.org
Also, do the MOOC Python Programming 2026 - you will have ample practice in that course as well
Last: play around. Write your own silly programs. Break things. Fix them.
You don't need sites or guidance to practice. You need curiosity and ideas to mess around with.
1
u/Automatic-Tackle5018 1d ago
I'm not sure such books are even published anymore. I suggest you try online resources such as Exercism, Leetcode, Advent of Code etc etc for problems/exercises to complete while using a different book or resource to learn from.
1
u/ApprehensiveSimple60 1d ago
Try advent of code, problems get more difficult by day. If you want more easier ones, just pick the earlier days from previous years.
Once you have produced some solutions ask Claude for an evaluation and to build a curriculum of exercises based on that to fill your major gaps.
-1
u/TimBrownDev 1d ago
I built a roadmap of the best practice problems I've seen to help teach python:
timbrown.dev/roadmap
-3
u/[deleted] 1d ago
[removed] — view removed comment