r/PythonLearning • • 17d ago

Why isn't my level improving in Python

I've been learning Python for months and I still can't write a single program, I've tried another language like JS but I'm still bad, I can hardly write a script (with the help of AI, not even with my own effort). And then i see dear claude just writing 10k freaking code lines in 5 mins as its nothing

5 Upvotes

28 comments sorted by

2

u/BranchLatter4294 17d ago

What types of practice problems are you doing?

1

u/mohamedibrahim456 17d ago

The one who teaches me gives us simple tests, such as a rock paper scessiors, The Hanged Man, that site that shows that robot whose name I don't remember whose name you control with functions like move(),turn_left(),turn_right()to make it go from begging to reach aflag (which I also failed). and i tried my own projects and i failed also like a small function that converts the number like this 1000-->1k, 1000000-->1M and so on untill googol(sorry my english is bad i Don't know how to describe that)

2

u/Embarrassed_Ad_1287 17d ago

Technically a small python code that runs in the terminal is a program. Just make sure to end it in ".py" for the file name, then also it will ask if you want to run it in terminal, choose that

1

u/mohamedibrahim456 17d ago

even this im bad at bro.....

1

u/Neo057 17d ago

i can give you a question bank that scales with difficulty and topics that you can do, it has the task that you have to do, a plan that you can follow, and the result code which you can check against, once you do enough code like this, you will build muscle memory and a mental model, then you can do independent coding with that information in mind and improve

1

u/mohamedibrahim456 17d ago

I also have another problem, even if I have a strong muscle memory and skill, I still can't apply my ideas as code. Example: I want a program that writes a specific application path and it stores it in RAM (don't ask me why I want it). Now I can't find a single tutorial for this, and I can't do it either. This happens to me in almost all projects without exception

1

u/Slight-Living-8098 17d ago

assign the path to a variable then you can call the variable in code.

1

u/Neo057 17d ago

the implementation phase comes much later, you should practice first, build good skills, and implementation will come with time

1

u/Responsible_Divide43 17d ago

Send me as well

1

u/Neo057 17d ago

its not free i can sell it to you, you can dm me if you wanna talk more about it

2

u/Responsible_Divide43 17d ago

Sorry. I will use other resources like hackerank, leetcode to train my muscle memory. I don't want to pay money

1

u/Neo057 17d ago

alright buddy, best of luck :D i know you will do good!!!!

1

u/clcodingupdates 17d ago

Partice Function and Class in Python.

1

u/One_Smoke6858 17d ago

Sounds like you are in tutorial hell.

Start making small project you can use Google and search for things, but read the code and don't just copy paste it.

1

u/mohamedibrahim456 17d ago

No. im not in tutorial hell plus i dont copy paste im trying then when i fail (after some hours of trying) i just ask someone or asking ai to find the issue then read the code to figure how he fixed that and i didnt get better tho

1

u/One_Smoke6858 17d ago

Ok, in that case how are you measuring getting better? Is it that you don't have to ask?

1

u/mohamedibrahim456 17d ago

when i open visual studio code i want to make a small project example a simple hangman game ok? Divide it for chapters 1- player have to guess something , get an array that have the words that he will guess 2- Get the shape of the hangman stages(on the internet or somewhere else) 3- logic when you start it choose a random word and show it as (_ _ _ _) for example if someone guess true-->show the letter(e.g _ a _ _) else-->show next stage from hangmam+ decrease tries by 1. I'm always bad in chapter number 3 Measure that for me a project, whether it's big, small, or any other programming language. It's frustrating to learn for a few months and not be able to do simple if/else game

1

u/Special-Earth-9590 17d ago

I’m a comp sci student, and my advice is don’t use any ai at all - when I use it I find that I get lazy, when it is better to struggle and figure out things on my own so I can understand it better. Find some practice problems, sit down and write out how you think the code should work, or what methods you think will solve it

1

u/mohamedibrahim456 17d ago

I'll be honest I've been stuck in trouble for hours and this happened with every little project or every code I tried to write, and it didn't make me more skilled, it just frustrated me.

1

u/Special-Earth-9590 17d ago

At least, no ai while practicing basics or learning fundamentals.

1

u/Hot_Technology8777 17d ago

Do you practice what you've learned at the time? Do you come up with little projects that force you to think about what you're doing? After months of learning you should be well past writing some programs. If you can elaborate or send me a chat on here I can talk to you more about it. If you're still passionate don't lose hope we've all been there.

1

u/mohamedibrahim456 17d ago

'do you practise what you've learned at the time' yes,The course I am actually watching contains exercises, and Python is divided into chapters, and each chapter is based on what came before it, and each chapter contains simple exercises that make you remember what you missed, but my problem is that I actually failed in almost every chapter. There were about 20 chapters, I only succeeded in two, I don't know why every time I write code it has to have a vague error that I can't find

1

u/Hot_Technology8777 17d ago

You're not supposed to go to the next chapter until you fully understand the one you finished. With courses you have to build from the ground up.

1

u/Sea-Ad7805 17d ago

No excuses, just keep working on it until you get good at Python programming.

Who told you you could take a break to write a post on Reddit?

1

u/Comfortable_Duty_380 16d ago

Im in the same boat as u but with cpp. Ive got into unreal cpp, and even python systems and after 5 months of me sitting here for nearly 12hours every single day non stop studing using things like ai,google,yt,code cademy, I’ve realized something important. When u study, dont try and remember so much. Only remember things like what are the most basic things that make up what youre doing, where basic structures belong and how u structure it. Dont overthink and dont over code,just type what u belive is right even if its just one line at a time. Also dont compile a whole script or after so many lines. Compile it after about 5-10 lines since thats easier than debugging a 100 line script that probably has more errors due to the fact of that one single error. One last thing, “most” the time the compiler tells u exactly whats wrong. If u get an error u cant figure out after trying for so long, throw your script into an ai, but listen to what its saying about the error,fix the error,but then after fixing it type what u did wrong then actually read and see why your solution was wrong. Dont get me wrong i still struggle on my own but then again if your not struggling then you arent programming for real.

1

u/[deleted] 17d ago

[removed] — view removed comment

1

u/mohamedibrahim456 17d ago

actually....No. I was trying to solve the bug for hours with no result and even 2 days and also failed and when i give up the bug is just so stupid like adding a wrong line in a for loop it doesnt build a 'muscle memory ' it just built Frustration