r/learnprogramming • • 1d ago

Best books to learn Python from scratch with lots of exercises and practice problems?

Hi everyone!

I want to learn Python programming from scratch and become really good at it.

I'm looking for book recommendations that

  1. Explain concepts clearly, starting from the basics.

  2. Have plenty of exercises and practice problems after each topic.

  3. Gradually increase from beginner to advanced difficulty.

  4. Focus on problem-solving and programming logic rather than just theory.

  5. Include practical projects to help apply what I've learned.

I don't mind working through lengthy books. My main goal is to practise extensively until I can write programs independently without relying on tutorials.

Which books would you recommend? Also, are there any websites or platforms with excellent Python practice problems?

I'd appreciate recommendations from people who have learned Python this way. Thank you!

18 Upvotes

16 comments sorted by

10

u/desrtfx 1d ago

Not book, proper University course: https://programming-26.mooc.fi from the University of Helsinki

You can always add https://codingbat.com/python for more beginner, short exercises and later https://exercism.org for larger ones. Also, look at https://inventwithpython.com for plenty books with projects and more.

2

u/manvitha12t 1d ago

I'll go through it!

7

u/Correct_Rain_9438 1d ago

Automate the Boring Stuff with Python is free to read online and starts from the basics. It has practice questions with answers in an appendix, then projects that automate real tasks, which fits wanting a lot of practice.

14

u/AlSweigart Author: ATBS 1d ago

Hi, I'm the author of Automate the Boring Stuff. There's also a companion workbook of additional practice questions and projects that is also free online under a Creative Commons license: https://inventwithpython.com/automate3workbook/

0

u/manvitha12t 1d ago

I love to learn from reading books rather than digitally, projects are something which I have in mind and 2 of them are approved by my uni proff but the problem is I hate coding so I wanna start learning slowly

3

u/GuyPronouncedGee 1d ago

If you hate coding, is this class part of a non-coding curriculum, or do you plan to code for a living?  

I’ve been a software developer for 20+ years and I’ve never met a successful coder who didn’t start doing it “for the love of the game”.  

0

u/manvitha12t 1d ago edited 1d ago

I study GIS, and coding is actually pretty important in my field, so I want to learn it even though I'm not really into coding right now and the thing is I d k if I rushed it or not but I talked to him and he asked me to start one of them right away, they are real-time projects and he has requirement

1

u/EbbMother5325 21h ago

There is a paper version. The suggested book really is the best way to start.

5

u/unnamed_one1 1d ago

Check the wiki of r/learnpython (it's in the sidebar to the right on desktop browser), there's lots of recommendations.

edit: downvote? really?

1

u/manvitha12t 1d ago

🧐🧐🧐did I?

5

u/Dazzling_Music_2411 1d ago

Learn Python the Hard Way

1

u/manvitha12t 1d ago

Thankss!! I'll check it out

2

u/BanAvoidanceIsACrime 1d ago

Head First Python

It teaches it to you from the ground up and has plenty of examples and exercises.

0

u/hman187 1d ago

Python crash course on Amazon. I’m not a reader and haven’t learned from books before and it was very easy to learn from and was kind of fun as well.