So …you are still in the learning process. What you may not realize is that there is a very slim probability that you will find a code to match your exact setup.
Every code can be written in many many ways. A long way, a short way, an efficient way, an advanced way, a dataset way, an all code way, etc etc etc
It would be truly impossible to show every single possible use case scenerio for every person.
The point of the tutorials is to teach you THAT specific way so you can learn the fundamental logic behind the combination of code that lead to that specific combination of a solution so you can apply that logic in your own creation of code.
As you continue to practice you will start seeing all the different ways to accomplish each goal you have. You will have lots of fun in your journey.
Happy coding.