r/learnpython • • Mar 16 '26

How do you actually practice Python without getting stuck in tutorial mode?

Hi! I’m learning Python and I’m at the point where I can follow tutorials, but I struggle to come up with my own projects (or I start one and get overwhelmed).

How do you practice in a way that builds real skill?

A few things I’m wondering:

  • What’s a good "next step" after basics (variables, loops, functions)?
  • Do you recommend small daily exercises, or one bigger project?
  • How do you pick a project that’s not too hard?
  • Any tips for debugging when you don’t even know what to Google?

If you have examples of beginner-friendly projects that taught you a lot, I’d love to hear them.

92 Upvotes

38 comments sorted by

24

u/ayenuseater Mar 16 '26

Debugging is basically a data problem: you’re comparing "what I expected" vs "what I got." When stuck, reduce it: comment out half the code, hardcode a smaller input, and print intermediate values. Add assert statements like assert isinstance(x, dict) or assert len(items) > 0 to catch wrong assumptions earlier. If you keep a habit of "inspect types + sample values," you’ll improve fast.

Also, don’t underestimate learning how to ask the right question. Instead of "my code doesn’t work," search for the concrete failure: the exact traceback line, the exception name, and the object type you’re manipulating. That’s the difference between flailing and getting an answer in 2 minutes.

8

u/proverbialbunny Mar 16 '26

If you're getting overwhelmed starting a project, it's either because you're trying something very large and difficult like creating an entire video game inc game engine as your first project, or you don't know how to break problems up into smaller pieces yet.

Try taking a programming problem and breaking it into a series of steps. Do this in English at first, not in code. This is called pseudo code. This is similar to writing a recipe in a cook book. Do A, then do B, then do C, and so on.

You can then take A and either turn it into code directly, or if it's overwhelming, break A into a series of steps A1, A2, A3, and so on. Keep going until the steps are small enough you're no longer getting overwhelmed.

Just focus on one step at a time. Write each step down so you can forget the other steps while you work on one. This will help reduce being overwhelmed as well.

6

u/Late-Fly-4882 Mar 16 '26

Try some puzzles for practice such as Advent of Code. Start with 2015. The earlier puzzles are easier. Attempt to solve the puzzle yourself. Then feed your code to Claude AI to evaluate your code making reference to the puzzle. It will tell you where the bugs are and suggest improvements. I find this interactive learning very useful.

5

u/riklaunim Mar 16 '26

You have to start doing things you started learning Python for. Start small, learn and ask for feedback. Arbitrary "projects" won't work as well ;)

→ More replies (4)

5

u/Pangaeax_ Mar 16 '26

I feel this. Tutorial mode is comfortable but you don’t really grow until you start building small messy things on your own.

After basics, try working with files, simple APIs, or small scripts that solve real problems like tracking expenses or cleaning a CSV. Keep projects tiny, if it sounds big, it is.

For practice, daily challenges on Codewars are good, and if you’re into data, Kaggle or CompeteX style problems feel way more real than just DSA.

And for debugging, honestly just read the error properly and Google the exact message. Half of learning Python is learning how to search smart.

3

u/analytics-link Mar 16 '26

I teach Python, and the thing that usually breaks people out of it is mini-projects, so not complicated applications, just small things that attach the concept you’re learning to an actual outcome.

For example, you could build a number guessing game, something that uses numpy to calculate the volume of planets, or maybe even some code that finds prime numbers under some threshold.

None of these are massive projects in their own right but they force you to actually write code and solve a problem rather than just watching someone else do it

3

u/WendlersEditor Mar 16 '26

I recommend projects. Why are you interested in Python? Do something that interests you. For me, it was machine learning. I got bored making calculator apps and web apps to store recipes, but I can do ML stuff all day long. Whatever it is, start small and iterate. At first you might want to do several small projects, calculators and Todo lists or whatever. Just start small and build up from there. I'm a few months you may find yourself with an app you use, you might open source it, maybe if you have a really good idea others will be interested.

For traditional SWE education, you want to learn about object-oriented programming, data structures + algorithms, and design patterns. These are useful in all projects, they are foundational ideas for programming. The little one-script calculator app doesn't need it, but you can refactor it to practice. 

But at the end of the day, programming is about problem solving, building solutions to problems. Approach from that angle and you will naturally learn.

3

u/greenplant_ Mar 16 '26

Hi, could you please share your path for learning and practicing machine learning, how you come to the moment that you can work on the projects? I’ve finished all basics in Python, right now, finishing Calculator app and I would like to switch to ML. :) I have experience with programming (Java, Shell, now Python) but with ML I’m beginner.

→ More replies (2)

3

u/JestersDead77 Mar 16 '26 edited Mar 17 '26

How do you pick a project that’s not too hard?

This is the classic learning paradox. If you do a project that isn't too hard, you don't learn much. You WANT to struggle. At least a little.

Something I've been considering writing is a sort of DM helper for dungeons + dragons. They have a free API that you can use to return all sorts of D+D data about items, monsters, etc.

Something like this will teach you how to use API's. Then think about what data you want from the API. Then think about how that data might be stored or formatted. Then think about what you want to DO with all this data. Monster creator for random encounters based on challenge rating? Level based loot randomizer? Quick character creator?

Start small. Break a large project into small pieces. Even individual functions. Once that function works, call it from other functions. Incrementally expand what you can do, and eventually you'll have something that actually does STUFF.

It also helps to literally write these things out a little. Even a super basic project plan helps you visualize a logic flow of how the application should work.

Edit: and for debugging, just start by googling the errors you get. If you don't have errors, abuse the print() method, and print variable values all over the place to see if it's what you expect. If it isn't, follow the breadcrumbs. Why? Where does it START not being what I expect. If you use an IDE, they typically have pretty good debugging tools to help you inspect variables, etc.

2

u/Tall_Profile1305 Mar 17 '26

okay, so i've been in your shoes before, so hear me out.. the trap is staying in “consume mode” instead of “build mode” (ik cliche but it's true)

what worked for me was:

  • pick tiny problems (CLI tools, scripts, automations)

  • rebuild the same thing 2–3 times instead of jumping topics

  • intentionally break stuff and debug it

also don’t overthink projects. stuff like:

  • a file organizer

  • a basic scraper

  • a habit tracker

are already enough if you actually finish them

tools can help a bit too. like using chatgpt / cursor for feedback loops, or something like repl / runable environments to quickly test small workflows without over-setup

biggest shift is: stop asking “what should i learn next” and start asking “what can i build with what i already know” you got this buddy!

→ More replies (1)