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

17 Upvotes

20 comments sorted by

5

u/Available_Safe1818 8d ago

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

1

u/Manostel-Jveive 8d 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 8d ago

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

0

u/ompossible 8d 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 8d ago

Codewars has the different levels of problems.

1

u/EnvironmentalDot9131 8d ago

That's the best one 

1

u/ompossible 8d ago

which?

1

u/desrtfx but other languages pro 8d 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 8d 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 7d 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 8d ago

I built a roadmap of the best practice problems I've seen to help teach python:
timbrown.dev/roadmap

-3

u/[deleted] 8d ago

[removed] — view removed comment

1

u/ompossible 8d ago

nice try, fareed!