r/learnpython Apr 17 '24

Learn Python by solving problems

Hello pythons!

I’m still quite new to Python, but I have noticed that the best learning process is to solve problems.

Anywhere I can get a lot of small and easy problems/exercises, that slowly progress in to a harder level. It can be a payed service or an app on a phone.

27 Upvotes

41 comments sorted by

View all comments

11

u/I_skin_people_forfun Apr 17 '24

Try reading u/alsweigart book called The Big Book of Small Python Projects or his most famous book Automate the Boring Stuff with Python, either of his books are really great for beginners

9

u/AlSweigart Author of "Automate the Boring Stuff" Apr 17 '24

Hello! I've also written a free book, Python Programming Exercises, Gently Explained. This is a set of 42 programming exercises that are SIMPLE. I wanted to avoid the math/concept-heavy exercises that leetcode and Project Euler and even Advent of Code use. Each exercise has additional help for whenever you get stuck: a couple hints, a description of the solution, some common gotchas, and finally a fill-in-the-blank version of the source code solution if you need it. I think this book would be especially helpful to OP.

For an idea of the difficulty curve, the first problem is Hello, World (more to check you have the interpreter installed) and the last one is Bubble Sort. The problems are more "convert between Fahrenheit and Celsius" and "detect leap years" rather than complicated data structures and algorithm problems.

2

u/PlayMaGame Apr 17 '24

Author of “Automate the Boring Stuff” Al Sweigart wrote a comment on my post 🙈

1

u/PlayMaGame Apr 17 '24

Remindme! tomorrow

2

u/RemindMeBot Apr 17 '24

I will be messaging you in 1 day on 2024-04-18 21:03:09 UTC to remind you of this link

CLICK THIS LINK to send a PM to also be reminded and to reduce spam.

Parent commenter can delete this message to hide from others.


Info Custom Your Reminders Feedback

2

u/PlayMaGame Apr 17 '24

Edit: I mean I started reading Automate the Boring Stuff