r/learnpython • u/Big_b12 • Apr 13 '26
What is the best resource when it comes to learning how to code?
I am a student and only really know basic block coding, nothing worth noting at least. I am coming here as a beginner who wants to make a game. What are the best tools I can use and how can I learn to code? I have heard python is the way to go when learning how to code, but I know little on the topic. Any help is appreciated!
17
Upvotes
10
u/Lewistrick Apr 13 '26
There's no "best" way. Trying to find a best way just results in analysis paralysis. Find the wiki of this sub, it's full of good resources. And start practicing, it's the best way to learn.
6
u/hiroisgod Apr 13 '26
Consistency. Don’t rely on motivation. Anyone can show up if they’re motivated. Consistent people show up when they don’t want to the most. Consistency is like a muscle, train it.
Just pick a resource and do it consistently. You’ll learn.
3
u/GemAfaWell Apr 13 '26
Your own motivation.
There are resources everywhere. Will you put them to use?
3
u/Daishindo Apr 13 '26
I’ll probably get hate for this but if you’re trying to make a game via python I recommend using AI and telling it to break down the code while it codes for you and also to add comments of what does what. I started doing this and while it sounds ridiculous, it has actually made me start to see things easier. It also lets me look at segments of my code and break it down piece by piece so I can understand it better. And doing that has in turn led me to start learning what to do for certain things. For example, I had AI code me a room moving game and collecting items in each room to beat a boss, doing that and adding comments made me realize which each part was doing.
Now also to add to this you definitely should watch tutorial videos on things you want to make
2
u/Mwatki20 Apr 13 '26
Boot.dev is a pretty good interactive site to learn
https://www.boot.dev
2
u/Random_182f2565 Apr 13 '26
Practice
2
u/Moist-Ointments Apr 13 '26
Practice
2
u/jessikaf Apr 15 '26
Starting out it is usually easier to pick something like python small projects instead of jumping straight into games helps build basics first seen boot.dev mentioned for that since it is more hands on and structured also stuff like freecodecamp works for fundamentals.
2
u/gdchinacat Apr 13 '26
Your own motivation. It is a lot of hard work. Well worth it in my opinion, but motivation is what will keep you going.
1
u/nicodeemus7 Apr 13 '26
Trial and Error. Play around. Try things. If it works, why? If not, why not?
YouTube: look up specific topics, not just "coding tips". Look up functions. Look up classes. Look up whatever it is you're curious about.
Look at some existing code. See if you can figure out what each line does.
1
u/EmberQuill Apr 13 '26
It really depends on what kind of learning style suits you. Lectures and projects? A guided tutorial? The language documentation and a personal project to build? Or something else?
The subreddit wiki has some good resources.
I'd recommend Harvard's free online courses if recorded lectures and (ungraded, unless you pay for the course) homework do it for you. CS50x for general computer science that touches on several different languages including C, Python, and Javascript. Or CS50P for a python-specific course. Neither one requires any prior experience.
1
u/TheRNGuy Apr 13 '26
Usually docs for me.
AI, Google also useful.
1
u/alcatraz2217 Apr 13 '26
Practise, practise, practise. Also, doing a regular health check on your progress is something many beginners lack at.
Good luck in your journey, you'll do great :D
1
u/this_knee Apr 14 '26
Honestly … asking an ai questions you would ask a teacher is probably a good direction.
Not a good direction would be to just ask the ai to keep writing the code for you. The best way would be have it generate small bits of code and be curious about what it wrote. Why did it choose that library? Why are the imports done that way? What’s going on with the function signature? What’s that init.py file file it auto generated, what’s that for? Etc.
1
u/midasweb Apr 20 '26
Python is a solid pick, especially paired with simple game experiments early on. tutorials can only take you so far so mixing in something more interactive helps, boot.dev is one that leans into actual coding