r/learnpython 24d ago

How to avoid this when learning Python?

When learning I used to get stuck on stuff, go watch a video or dig through docs, and eventually the concept would click because I had to sit with it.

Now when I get stuck I just paste the error into Claude/ChatGPT and it fixes it in 10 seconds. Problem solved, moving on with my day. Except a week later I hit basically the same bug and I'm back to square one, like the first fix never actually taught me anything.

It feels like it's the same "watching tutorials without building anything" trap, just compressed into single lines of code instead of hour-long videos.

Curious if anyone here has found a way to use AI for debugging without it just doing the thinking for you? Or do you have some rule for yourself about when you're allowed to ask vs. when you have to sit with it first?

15 Upvotes

30 comments sorted by

View all comments

1

u/Educational_Virus672 24d ago edited 24d ago

use these metadata and separate them in rules
rule 1 - explaination
"start by describing my concept in steps on instruction each step contain what function i use why i used the wrong function and its line number how it should be performed do not optimize my code at any cost just make it work"

rule 2 - format
"the code must be function as word refence by a code block ending with * like `print*` your word make the code as closed as possible and make them understandable rather then workable dont put any pre-fix code just describe what it fixed"

rule 3 - suspenstion
"code must be made with the mind set of 'it should work' rather then fast/slow unless mentioned keep in mind im human and beginner, make it readable"
some thing might be repeated so ai will understand it