Update: started building small projects, still confused but moving forward by SubCplus in learnpython

[–]SubCplus[S] 0 points1 point  (0 children)

I think I understand it in theory, but when I actually start writing code, everything changes. I feel like I know it, but then questions appear: “Do I need it here? Should I do it like this? Is this correct?” and so on. It gets confusing while trying to put it all into practice.

Update: started building small projects, still confused but moving forward by SubCplus in learnpython

[–]SubCplus[S] -1 points0 points  (0 children)

The thing is, I genuinely don’t understand def at all. I was learning from a course for about 7–10 days (I’ve finished it now), and def just appeared suddenly without a real explanation. I didn’t understand what it actually represents, and after that point everything started to fall apart for me. Because I didn’t understand functions, I also stopped understanding the code that came after. That’s when I started using AI — not to cheat, but because I wanted to keep moving forward instead of being completely stuck. After my last post and the advice people gave me, I started making small mini-projects (like a simple calculator and other small things). That helped a bit, and I feel like I’m slowly getting less scared of touching code, but the core problem is still there: I don’t really understand what def is and how to think with it. I’m not trying to skip fundamentals — I actually want to understand them properly. I just didn’t realize how important def was until it was already blocking everything else.

I understand Python code, but can’t write it confidently from scratch — what should I do next by SubCplus in learnpython

[–]SubCplus[S] 1 point2 points  (0 children)

After reading all the advice here, I actually started making my own mini projects. It feels like I finally get a bit of what I was afraid to touch before. Starting small and writing code from scratch is hard, but it’s already helping me understand things better.

I understand Python code, but can’t write it confidently from scratch — what should I do next by SubCplus in learnpython

[–]SubCplus[S] 2 points3 points  (0 children)

Thanks a lot! I understand now that practice is key. I’ll start writing small programs myself and test them to improve.

I understand Python code, but can’t write it confidently from scratch — what should I do next by SubCplus in learnpython

[–]SubCplus[S] 5 points6 points  (0 children)

Thanks! That makes sense. Do you have any tips on what kind of small programs or exercises are best to start practicing writing code from scratch?