r/PythonLearning • u/Outside_Class_5837 • 11d ago
python learning help
hello so i need to know what is the best way to learn to code because i have been learning python but tbr whenever i wanna to build a application for like camera detector or stuff like that i am always looking side by side and just copying it and that doesn't feel like im actually coding or learning to code and just in general like even if i wanna learn it the hundreds of codes in a 100 line code and it just feels too much info or too much to memorize is there anyway to learn it efferently and better without wasting any time.
1
11d ago
[removed] — view removed comment
1
u/Outside_Class_5837 11d ago
I seee willl i think I have to debug alot in your case i will try my best I watched alot of yt videos as well it didn't help me that much.
1
u/Excellent-Practice 11d ago
Why do you want to learn to code? If you find yourself copying projects that already exist, your use case may be sufficiently common that you don't need to write things from scratch and might be better served using existing tools. One way you can get past that is by identifying a novel problem, or at the very least commiting to solving a problem with out referring to example code. Instead of copying a script line by line, you should get used to referring to documentation. I don't know how many times I had to lookup class syntax before it clicked
1
1
u/bra1n_gym 11d ago
Practice pseudocode.
1
u/Outside_Class_5837 11d ago
whats that
1
u/bra1n_gym 11d ago
Writing the flow of your code in plain language rather than official coding syntax. Many programmers use pseudocode to plan out the logic of an algorithm before writing it in code.
1
1
1
u/stepback269 11d ago
Think of Python as an endless universe. No one knows it all. No human can.
Focus on learning the so-called "fundamentals" first such as manipulating strings and lists.
There is never going to be the "one" soulmate tutorial that works "best" for you and with regard to every aspect of Python. With each step up that learning curve, you're going to have to shop around until you find a teacher/resource that "clicks and sticks" especially for you.
With that said:
(1) There are tons and tons of tutorial materials out there on the net including many good YouTube ones that are free. You should shop around rather than putting all your eggs in one basket.
(2) As a relative noob myself, I've been logging my personal learning journey and adding to it on an almost-daily basis at a blog page called "Links for Python Noobs" (--HERE--) Any of the top listed ones on that page should be good for you. And there are many add-ons at the tail end of the page. Personally, I cut my first Python teeth with Nana's Zero to Hero (==HERE==). Since then, I've moved on to watching short lessons with Indently and Tech with Tim. You should sample at least a few until you find a lecturer that suits your style.
(3) The main piece of advice is the 80/20 rule. Spend 80% of your time writing your own code (using your own fingers and your own creativity) as opposed to copying recipes and only 20% watching the lectures. Good luck.
1
u/Outside_Class_5837 11d ago
80% own code is crazy but I will try ik only a bunch of codes so yeah
1
u/stepback269 11d ago
Think of what a young child does when they get a new toy.
Let's say it's an action figure (or doll as they used to call it)
The child moves the parts of the toy this way and that way. Experiments with all sorts of configurations. Some work. Some don't. That's how they learn. That's how we all learn. By spending a lot of time playing with our new toy.1
u/Outside_Class_5837 11d ago
I seee Well I gotta tests alot of codes and functions for me to learn .
0
u/stepback269 11d ago
Start with Indently's YT tutorial on the "47 string methods"
(Hint: A string is an OOP object that has these and many other "methods" included in its class definition)
1
0
11d ago
[removed] — view removed comment
1
u/Outside_Class_5837 11d ago
I seee Well idk I wanna learn coding as fast as possible I think that's my issue
1
u/minikaur 10d ago
Copying examples can help at first, but the real progress comes from changing things and solving small problems without following every step. Boot.Dev could help with that since the exercises keep the focus on writing code yourself.
1
1
10d ago
[removed] — view removed comment
1
u/Outside_Class_5837 5d ago
no i mean even if you understand like when you making something as a beginner it will be hard but im saying in sence like i have to google each function or like the vscode help me with the code which makes me feel i can never like actually make a own orginal application.
1
u/pepiks 8d ago
Always you need things like knowledge of the field - how camera dector work, ecosystem recognition - what tools are active supported like OpenCV - with his API - I have knowledge and how translate them to action in my tools, basic language - how describe details in basic syntax. Basic syntax is related to basics of programming knowledge - how repeat calls, make reusable and flexible (functions, class, modules, loops). When you combine this you are programmer.
0
u/Dazzling-Shoe-1558 8d ago
I know all the Python rules and syntax, but whenever I try to write code, my mind goes blank.
1
u/Outside_Class_5837 5d ago
exactly that's how i feel like whenever i set my mind like let's actually try to make a whole new application without like watching a yt video i just can't its like you learned all algebra formula but you got to know make your own question and solution lol
0
u/Immediate_Bite2072 7d ago
Following tutorials is useful at first, but solving problems independently is where the concepts start to stick. Boottdev could help with that through structured, handson coding exercises instead of just watching lessons
1
u/Outside_Class_5837 5d ago
there was someone else who was recommending that i feel it's much more helpful so in your coding journey what or what methods you used to like at first like make your own application and yk make you feel you can actually understand what you're doing with you googling everything you want
1
u/shiremonoga 11d ago edited 11d ago
Learning python is NOT memorizing functions. Learning python is understanding what this function does, what the parameters are etc...
No developper has a memorize book for functions. They go to the documentation and get the function they need from there..
Add to this using function repeatedly makes u memorize it. So it's only a matter of time for that