r/learnpython • • 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

18 comments sorted by

4

u/Available_Safe1818 2d ago

try codewars. or just make your own programs/projects.

1

u/Manostel-Jveive 1d ago

own projects are way better once you get the syntax down, since puzzle sites mostly reward clever one-liners that nobody actually wants to read in real code

1

u/Available_Safe1818 1d ago

I have recently completed the basics of Python and want to improve my problem solving skills.

0

u/ompossible 1d ago

I tried codewars, but I need some basic too, like in sequence, basic(not too basic), intermediate and then advance. I was using codechef, but after 1 lesson they want me to buy their pro verison.

1

u/Available_Safe1818 1d ago

Codewars has the different levels of problems.

1

u/EnvironmentalDot9131 1d ago

That's the best one 

1

u/ompossible 1d ago

which?

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

1

u/ompossible 1d ago

nice try, fareed!