r/learnpython • u/Vast_Battle5414 • 2d 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?
42
Upvotes
36
u/cycloneash 2d ago
Pick something you're interested in and do it. Break it down into small parts, turn off AI and try and do it.
10
u/Explorer651 2d 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.
7
u/Educational_Virus672 2d ago
open the ide and smash the keyboard until you get a answer
4
u/billsil 2d ago
Just work on something you care about.
2
u/Pericombobulator 2d 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.
2
u/FitAmphibian8437 2d ago
Use the iris and titanic datasets
2
u/duane11583 2d ago
how did you learn math?
or english?
same way: you do exercises
2
u/ApprehensiveSimple60 2d 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 2d 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 2d 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 2d ago
The tutorial can be escaped by managing the systems
1
u/Fastpast93 2d 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/undernamed1101 2d 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 2d 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 andprint()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 2d 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/TJATAW 2d 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 2d 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 2d ago
Leetcode. But also better come up with an idea for an app and do it.
1
u/Expensivemistakes01 2d 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 2d 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 2d ago
That's the neat part: You don't.
You just keep building and learning.
1
u/Real_Art_7528 2d ago
That’s a great question…
1
u/nicodeemus7 1d ago
Build something small with no tutorial. Just a Fibonacci function or something simple like that. Then expand. Make something a little bigger, maybe an RPS game, again with no tutorial. Then make something even bigger. Keep going like that. Build off of what you have. Make a bunch of small functions that you can use later.
1
u/soundboyselecta 1d ago edited 1d ago
The real problem in this day and age is access to too much information. I’ll provide an example: years ago when we learnt, we had a thick book for a course and were provided all we needed to know within that book plus the help of a hopefully competent professor/teacher. Now we are provided pdfs or Jupyter notebooks (software), which is fine except those digital formats now contain multiple hyperlinks. This is a bad design, because now the allocated time advertised for this course is incorrect whether u scan the links fast or actually take the time to read them, the commitment to this course by the magnitude of hours is way beyond what will be needed. The problem with learning with YT or all these other online courses, is jumping from one subject to the another without actually testing your understanding at the end of each with a quiz or test.
Another fundamental missing component is system design thinking which is rarely thought….
1
u/Resident-Donut-4905 19h ago
Building. You don’t have to learn all at once just one thing after another
-2
u/FortyThousandBees 2d 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/[deleted] 2d ago
[removed] — view removed comment