In my experience, you learn more effectively when you figure things out by yourself.
- Study the documentation and examples, such as items in the Asset library.
- Experiment with writing code.
- If the code doesn't work as expected, review the documentation and/or debug it using print statements or the debugger.
- Document and save your working code examples for later reference.
Only ask for help as a last resort, after you've spent a reasonable amount of time trying to solve the problem yourself.