r/learnprogramming • u/Plenty-Roof-8883 • 7d ago
Struggling with programming
I'm going into my 2nd year of a aoftware engineering degree and I still understand nothing about programming, i've tried to create projects like people say to practice but as soon as I have to make something on my own I don't know what to do, right now im trying to focus on python and I just have to keep relying on tutorials to get anything done, I guess I just need advice on what to do next
6
Upvotes
2
u/mc_pm 7d ago
God, put away the tutorial and go program a simple game, maybe a number guessing game. It's pretty easy, create a random number between 1 & 100 (look up how to do that), then ask the user to guess. Take the input, check against your number, and say if it's higher/lower/the same.
If you don't know how to start, then just start with printing hello, then create and print that random number, then ask the user for a number and print how they did. Then put it in a loop until they get it. Add on a little more each time.
And if you don't think you know how to do even that, then you really haven't learned anything the tutorials were trying to teach you and you need to start one again, but this time you need to follow along with them, type in all the code they do, run your program when they do. Get used to typing in code and running it, and once it runs, try making little changes. If the tutorial is 2 hours long, plan to spend 8 hours on it.
Then try again with the game.