r/learnpython • • 18h ago

How do you escape tutorial hell and actually become good at Python?

Learning Python syntax is one thing, but solving a problem from scratch feels completely different.

What small projects or daily exercises would you recommend to develop real programming skills without constantly following tutorials?

31 Upvotes

39 comments sorted by

23

u/cycloneash 18h ago

Pick something you're interested in and do it. Break it down into small parts, turn off AI and try and do it.

8

u/JimBo_Drewbacca 17h ago

And then when you're done, do it again but better

2

u/Vietname 13h ago

Addendum to this: it doesnt have to be anything complicated, and it doesnt have to be anything novel. Doing something someone else has done before but trying to do it yourself is a great way to learn, and it means it's easier to get help if you get stuck.

6

u/Explorer651 17h ago

Exercism's Python track is worth a look. It has around 150 exercises where you write the solution yourself, and once you've solved one you can submit it to volunteer mentors for feedback on writing more idiomatic Python.

4

u/Educational_Virus672 16h ago

open the ide and smash the keyboard until you get a answer

2

u/FitAmphibian8437 16h ago

Use the iris and titanic datasets

2

u/billsil 12h ago

Just work on something you care about.

2

u/ApprehensiveSimple60 17h ago

I‘d recommend advent of code, also puzzles from previous years.
I did them, then asked Claude for evaluation and a gap analysis. Based on what was found I asked Claude to build a learning series with exercises, specifically to address my gaps.

1

u/Eastern-Question4682 18h ago

the main reason people get stuck in tutroial hell is watching someone else solve the whole problem in order, instead of struggling through bugs on your own. the best way out is picking a tiny annoying task from your own daily computer use and refusing to watch a guide for it

for example, write a script that sorts your messy downloads folder by file type, scrapes prices from a store page you check often and pings you when something drops, or cleans up a rough csv file. break the probem down into tiny pieces on paper first, like how do i read a folder, then how do i move one file, and only search official docs or stackoverflow when you hit a specific error

try to keep your projects small enough that you can finish one in a weekend. finishing three tiny ugly scripts from zero teaches you way more real python than finishing ten big video courses, my first porjects were simple console games, password generators and websites, they were really ugly and messy, but it gives a lot of expierence

1

u/Solonotix 17h ago

Like the other guys said, the way out of tutorial hell is to just do the thing. I usually recommend it as a task you are particularly interested in or familiar with. Something where you can recognize that the result is wrong at a glance.

Usually you start with a dumb first pass that kind of does the thing, but it isn't quite right. You tweak it in a way you think should work, only for it to be even worse. So then you continue refactoring until you finally have something resembling your desired output.

At this point, you will look back at when you've written and probably think it's a mess (if you're anything like me). This is where you start to refine the process. Things like adding ways to pass input values to the execution, or new formats, maybe multiple results at once instead of just one, interactive mode, etc. Each of these goals will require you to learn how to achieve that result.

Eventually, you end up with a bunch of new solutions and approaches to problems you never would have thought to ask about. That is how specialization begins, and eventually it leads to expertise. This is true of any language and/or framework.

1

u/EnvironmentalDot9131 17h ago

The tutorial can be escaped by managing the systems

1

u/Fastpast93 17h ago

I ask the same question and no one can give a straight answer. I recommend you make a Rock, Paper Scissors program, a calculator program, and a sorting program.

1

u/Pericombobulator 16h ago

You need to work on projects that interest you. In my case, they were ways to automate things like creating reports from excel documents or my main interest at the time; web scraping.

1

u/GatewayNotFound 16h ago

The best way out of tutorial hell is to build ugly, useful scripts for your own daily annoyances instead of following generic "build a calculator" guides. Start with tiny CLI tools: a script that automatically sorts your messy Downloads folder by file type, a web scraper that pings you when a price drops, or a quick log parser. You'll get stuck a lot—and Googling specific errors or reading docs to fix your own broken code is where the real learning actually happens.

1

u/undernamed1101 14h ago

I learned by trial and error to learn the specifics. Error exception handling, TypeErrors, Module missing etc. Just to name a few ways.

1

u/kilkil 11h ago

do exercises online. without a guide or tutorial. start with easy difficulty, then transition to medium.

the goal is, instead of just "knowing" syntax, getting comfortable with it. so that you can reason about it a little more intuitively.

then once you feel like you've developed a more confident intuitition about the basics of the syntax... try making a simple todo list app on your own. it doesn't need an actual UI, just make a little program that uses input() to take user interaction and print() to display things to the user.

make a basic version of the app, then try to think of some cool features to add and try to figure out how you would add them.

1

u/Just__Liberty 11h ago

Put the keyboard away at the beginning of a non-trivial project/problem and get out a pad of paper. Sketch the problem graphically. Think about what classes and/or data structures you might need to represent the elements of the problem, after figuring out what those elements are. Think about what the input will look like and what you want the result/output to look like. Think about what methods or functions you need to get from the input to the output. What you do next varies between people (e.g. top down vs bottom up), but I like to build a few simple tools that I think I'll need. These may end up being useful, but they'll help me refine all of the above. As others have said, break the problem down into small pieces and code those pieces.

1

u/duane11583 11h ago

how did you learn math?

or english?

same way: you do exercises

1

u/TJATAW 10h ago

On every tutorial you do, and ones you did in the past, add something to them. A new function or feature. Maybe add a bunch of features.

A new button on a calculator, or a calendar into a note taking app, or a way to tag people & projects, or... whatever.

It means you have no one telling you what to do, or how to do it. You have to come up with the idea, and then figure it out.

A large part of what I do at work is add something to existing code.

1

u/good_name_0 9h ago

10y in and I still use tutorials for tools and concepts I'm unfamiliar with.

Something I used to do with students is start with the problem in our native language. Then we'd slowly rewrite it into pseudo code, and then slowly rewrite it into the programming language we were using.

1

u/StrayFeral 7h ago

Leetcode. But also better come up with an idea for an app and do it.

1

u/Expensivemistakes01 7h ago

I’m just started learning Python - 2 weeks in . I learn something new everyday and had Claude give me a project to do ( from the beginning ) I just add something new to the project everyday

1

u/TheLimeyCanuck 5h ago

Forget tutorials and start building things you want for your own use. When you hit a wall research how to do only that in Python. You will learn much quicker that way because it's much easer to retain stuff you actually use right away.

I built a 30+ year career as a contract developer in a dozen languages and multiple platforms that way with no formal training. Before I retired I was making 250-350K/yr, every year, and that was a decade ago.

1

u/WangChud 4h ago

That's the neat part: You don't.

You just keep building and learning.

1

u/Real_Art_7528 2h ago

That’s a great question…

-1

u/FortyThousandBees 8h ago

Genuinely, just pick a cool project you want to build and use a coding agent (I recommend Claude because it's not really trained to kiss your a** like most other frontier models), but have the agent help you write out a spec first, and make sure that while you're doing it agent knows you're the one making all the design decisions. I typically word my prompt as "help me identify any ambiguities in this specification and ask me how to resolve them". The agent knows what all the reasonable and well-established architectural decisions are for the kind of system you're trying to construct, so it will be able to show you what architectures are standard in practice, and, because this is ideally something you actually are curious about, you'll actually find it exciting to learn what the agent is showing you, and, if you're anything like me, you'll find yourself learning a whole lot more than you thought you could using a coding agent.

1

u/TheLimeyCanuck 5h ago

Forget the agent. Learn to do it yourself first.

1

u/FortyThousandBees 5h ago

As someone who's self taught in operating systems, linear algebra, probability theory (all pre-AI), and programming language theory (post-AI) and who works for arguably the single most influential software company in open source, I can at least vouch for the fact that in my personal experience, coding agents make self-teaching far more effective, especially when you're starting from 0.

1

u/TheLimeyCanuck 5h ago

As someone with over 35 years as a successful contract developer for governments (both US and Canadian), banks, major corporations (including IBM), and several financial institutions I can vouch for the fact that your are wrong. AI is great as an assistant when you already know how, it is not an effective teacher.

0

u/FortyThousandBees 4h ago

So to some extent you're not wrong, if you use LLMs improperly: giving them vague instructions and just prompting them every time something goes wrong, you are in fact unlikely to learn anything. This was what made me hate my job for the past ~6 months as my code just got sloppier and sloppier.

But as I've used the development process I've outlined above, the quality and efficiency of my work as well as the depth of understanding I have in what I build has increased actually tenfold. And I don't think there's any reason to believe you need any amount of experience to use this approach, especially when (and again this is a personal vouch) I've used it to bootstrap myself into programming language theory, arguably the most technically dense field in computer science.

I recommend you try it before you knock it :)

p.s. the reason I mentioned self-study credentials before any work experience is because it exhibits curiousity, not necessarily any amount of expertise. The thing about me is that I actually really do care about understanding systems and building cool stuff, and so I'm never going to let LLMs make my job too easy for me since that simply wouldn't be any fun.

1

u/TheLimeyCanuck 4h ago edited 4h ago

"I recommend you try it before you knock it :)"

Don't make assumptions. I use AI every day for coding and I love it, but because I learned without it I know when to call bullshit, when security is lacking or missing altogether, how to spot edge cases, etc. As you suggest AI makes me far more efficient but I wouldn't be as good a programmer today as I am if I had relied on it from the beginning.

"giving them vague instructions and just prompting them every time something goes wrong, you are in fact unlikely to learn anything"

Exactly my point. If you had learned to program without AI agents the questions you ask them wouldn't be vague.

"the reason I mentioned self-study credentials before any work experience"

I am completely self-taught but built a 3+ decade career at prestigious shops because I had an insatiable curiosity and desire to learn. I am not in any way opposed to self-study or autodidacticism, in fact I believe it makes for the best developers.

1

u/FortyThousandBees 4h ago

The thing I want you to try is the procedure I talked about above: write a spec, and simply iterate on it with an LLM, instructing it explicitly to never fill in gaps for you, and see if that makes a difference in your depth of understanding and the quality of the systems you build

1

u/TheLimeyCanuck 1h ago

I have plenty of depth of understanding thank you. None of what you suggest is good to teach a newbie Python.

•

u/FortyThousandBees 47m ago

OP asked for how to become a better programmer, and I'm giving them my well-qualified opinion in response.

All you've done is counter my claims with vague arguments without offering your own alternatives, which would likely serve to only confuse and discourage a new programmer.

Perhaps start a thread in this post of your own then to argue your own claim, and let OP decide for themselves what approach they want to take :)

-1

u/[deleted] 18h ago

[removed] — view removed comment

1

u/Vast_Battle5414 17h ago

Yes we can try that it looks interesting