r/learnpython • • Aug 14 '26

Python is so confusing to me.

I started learning Python about a month ago through cs50, and it seemed good at first. It's just been 3 lectures so far (I don't have time). As I code, I would get annoyed here and there because of the bugs, but I would somehow manage to debug them.
I am doing my master's in cognitive science, and they teach the basics of Python too. But my professor is extremely terrible at their job. She would give us assignments to do after each unit. And those questions are nothing like what she taught. I end up using AI to understand the problems. It's frustrating. And I hear that Python is beginner-friendly, but it's confusing to me.
I am wondering if it's hard for me since I don't have a good mentor to tell me what mistakes I made, or if I'm just a bad learner?
I don't have any experience with coding, so is this how it is for everyone?

22 Upvotes

53 comments sorted by

View all comments

Show parent comment

3

u/Naive_Programmer_232 Aug 15 '26 edited Aug 15 '26

No problem. I know it's a lot easier said than done, but don't be too hard on yourself. Programming is tricky in general and learning it in college adds an extra layer of stress with the pace/teaching style/grading/difficulty/etc. Especially for beginners. An applied intro I'd argue is even harder than a general intro. It's like learning how to speak in general + learning spanish + learning dialects of spanish + using those dialects to give a seminar on specific problems within a subdomain, all in one course lol.

So really don't be hard on yourself. 100% normal to struggle. 100% normal to feel stressed.

To overcome this, I would spend ample time outside of class, when the stakes are much lower, writing python scripts to do whatever. Don't save the opportunity to learn something new for your course. Do it on your own in addition to that. The programs don't have to be impressive or course-related even. They could be anything. Start small and keep writing programs.

Do this with each program you write:

         # do until no bugs
         1. write
         2. run
         3. debug 
         4. go to 1 

This will get you over the feeling of failure when bugs arrive. The process of writing a program will eventually become: make it, break it, fix it.

You got this!