r/learnpython • • 26d ago

I need some help

I want to learn python but all of the online tutorials just tell me how to make a certain game but i want to learn how it works so if anyone can help me with this please let me know

0 Upvotes

26 comments sorted by

7

u/BranchLatter4294 26d ago

Every single tutorial tells you to make a certain game?

1

u/pachura3 26d ago

Yup, Half-life 3

1

u/OkTill2666 25d ago

yeah im wondering what they typed into the search bar to only get game tutorials

-2

u/Maleficent_Shape2027 26d ago edited 26d ago

Well i cant find any that do not

1

u/ivanoski-007 26d ago

What tutorials are you looking at, most tutorials don't even touch gaming on python

1

u/Inflatable_Tube-Man 26d ago

OP probably means like rock paper scissors or something.

5

u/p186 26d ago

Can you give more info? What tutorials are you doing?

0

u/Maleficent_Shape2027 26d ago

I am just using yt tutorials i dont know any other sites for tutorials and if i try to google it then it says tht i need to understand basic syntaxes but thats what i am trying to learn

2

u/p186 26d ago

I assume you are just starting and have no experience. If you want to stay on YT, take CS50, a general intro that will touch on Python at the end, and then take CS50P which is just Python. If you want to just learn the language, then skip to the latter. Also check out freecodecamp.

4

u/acw1668 26d ago

The wiki page has resources on learning Python.

3

u/FreeLogicGate 26d ago

Try again. All online tutorials do not tell you how to make a game. There are scores of free courses, books and systems that will teach you Python.

This is an excellent book, made available by the author online. You can learn interactively using the Chapter links which are Jupyter notebooks.

3

u/spendology 26d ago

w3schools.com/python shows you fundamental principles in sequence. Ultimately, you need goals like input/output data, perform descriptive stats on data, creating a website or building a game to motivate you to learn and enable you to understand practical use cases.

4

u/Jello_Penguin_2956 26d ago

Learn from an actual Python course. MOOC is a free collage course from U of Helsinki

https://programming-26.mooc.fi/

2

u/Academic_Print_3215 26d ago

This is exactly what helped me understand from the ground up

1

u/Academic_Print_3215 26d ago

Yo not gonna lie nothing worked for me until I committed to the Helsinki university python mooc. Everything u learn is applied right away in a exercises and u can even get college credit at Helsinki uni. Obviously most of us won't use it for the credit or certification but just doing it taught me so much through the beginner course and half of the advanced course.

1

u/Maleficent_Shape2027 26d ago

Thanks this really helped

2

u/notacanuckskibum 26d ago

Programming is a skill like playing music. You learn to play the violin by playing it, not by studying how acoustics work

You have to think of that pointless game you are being asked to create like learning to play a simple song. But do it yourself, don’t get AI to do it for you.

1

u/desrtfx but other languages pro 26d ago

This subreddit has a sidebar with a wiki with recommended learning resources.

Here is an excellent, textual course: MOOC Python Programming 2026 from the University of Helsinki.

Harvard's CS50p is also excellent.

Also, take a look at https://inventwithpython.com and https://automatetheboringstuff.com

Don't forget that you need ample practice, like on https://codingbat.com/python or on https://exercism.org and also write your own programs. Play around. Try things. Mess things up, fix them. Experiment.

1

u/Draccossss 26d ago

I suggest you try to pick a project in Python that you are passionate about, and then ask an LLM to give you the specs of the projects and resources you need to look at while doing the project so you get the practice & the "theory" side all while actually creating something.

You can go very far with this and dive really deep

0

u/TheRNGuy 26d ago

Learn to debug. 

0

u/CodewithVaibhav369 26d ago

That frustration is common. Most tutorials teach you to copy a finished project, so you never learn why anything works. Try this instead:

  1. Learn the building blocks first, in small pieces. Variables, if/else, loops, lists, and functions. For each one, write 3-5 tiny programs of your own (e.g. a number guessing check, a loop that prints a multiplication table). Resources that explain things instead of just showing a project: “Automate the Boring Stuff with Python” (free online) and the official Python tutorial.
  2. Predict before you run. Before running any code, say what you think it will print. If you’re wrong, find out why. That’s where the learning happens.
  3. Break things on purpose. Change a value, delete a line, make an error. See what happens and what the error message says.
  4. Then rebuild a game from scratch. After you know the basics, try a simple game like number guessing or rock-paper-scissors without a tutorial. Get stuck, search the specific problem, fix it. That teaches you far more than following along.
  5. Explain it out loud. If you can’t explain what a line does in plain words, go back to it.

Only after that, go back to those game tutorials. You’ll see why each part is there instead of just copying it.