r/learnpython • u/NitinGNair • 17d ago
How should i start learning python? I am interested in robotics and such. I want to learn a bit in depth and not just surface level.
I'm sorry if this is a repeated question in this subreddit.
Will Documentation do the job or should i go for specific courses like CS50 by Harvard?
3
u/wak_trader 17d ago
I thing you should start with Linear Algebra.
0
u/NitinGNair 17d ago
what? i meant where to learn python lol.
3
u/mattynmax 17d ago
To do useful things related to robotics with python, a solid understanding of calculus, differential equations, and linear algebra is needed. Do you have that already?
1
u/NitinGNair 17d ago
working on it sir. I am only realizing that now :(
I thought it was only about coding. I have those subjects coming up in my college curriculum.
2
u/davideogameman 17d ago
Both. Do both.
Being able to program computers doesn't magically make you good at helping them navigate the physical world. Linear algebra is important for mathematically modeling rotations and translations - important tools for anything rigid and moving. Other topics like physics, differential equations will help with fundamentals necessary to model the movement of machines and control systems to actually start building some sort of control loop.
1
u/NitinGNair 17d ago
oh i didnt know that. Thank you!!
Sorry for my ignorance u/wak_trader :(1
u/NitinGNair 17d ago
u/davideogameman is python documentation a good place to start?
2
2
u/davideogameman 17d ago
Off the top of my head I don't know. I learned Python later, at the point I was arguably becoming an experienced programmer, and I used the docs for looking up standard library stuff and unique syntax/behavioral bits when I couldn't pattern match my way to success. Probably I got a lot of my questions answered by Google searches that took me to stack overflow, but it helped that I already knew the right questions to ask.
You can try learning from the docs but likely you need to start with a beginner programming tutorial and I don't know if they have one. I'm sure if you search around you can find one. Or maybe one of the mooc platforms will have a free intro to programming course that'll teach Python
2
u/TheRNGuy 16d ago
Some tutorial or article and docs.
You need tutorials for more context, and docs to see what you're gonna have in future, or even what tutorials next to search (many channels or playlists don't have everything from docs; even some imporesnt things)
Plus, programmers read docs all ytr time anyway (probably more frameworks than vanilla Python)
2
u/Trudae 17d ago
Just create a plan and make sure you understand it in both theory and practice.
An example of a learning-plan I usually teach my peers would look something like:
0. Print something to the console
Datatypes(integers, strings, floats, boolean, etc…)
Naming convention for python(in Python, snakecase for variables, all caps for constants, stuff like that)
Simple functions(To be aware of it early) and methods
The difference between lists, dictionaries, also tuples and sets
F-strings
If/else statements, also ”and” and ”in”
For loops and while loops
More on functions and parameters(what does *args do?)
Classes
Learn all this, which all is extremely easy to understand, make ”useless” tiny programs from ideas in your head that implements all of these things. Whenever you get a ”I wanna do this” — it is 99% of the time already a feature in python or a module you can import or install with pip. Just describe it in google and you’ll find them very easily.
2
u/Trudae 17d ago
Replying to myself instead of editing.
Another good way of learning even faster is to buy the app ”Pythonista” on your phone. Costs about $15 but it’s a really good IDE and allows you to make scripts you can use on your phone, or just for practice. I use it everyday and I have zero complaints, the only downside is that it’s not the latest Python version, but that really doesn’t bother me.
1
u/NitinGNair 17d ago
Will surely look into it! This is my first time using reddit and did not expect this much help. My friend wasnt kidding when he said " just ask on reddit ".
1
2
u/Discordbothost 17d ago
don't stress about the math thing yet, it comes later and your college courses will cover it. you can absolutely start with just python now.
cs50p is a good pick for depth since the problem sets actually make you think. the docs are great as a reference but rough as a first teacher. what i'd add for the robotics angle is a cheap board early, like a raspberry pi pico running micropython. blinking an led, reading a distance sensor and driving a small servo teaches you loops, timing and functions in a way that sticks, and it's the same python.
once you're comfy, numpy is the next thing robotics code leans on, and later ROS 2 if you go that direction. but that's months away, no rush
1
2
u/TheRNGuy 16d ago
There are many frameworks, what kind of robots do you want to make?
1
u/NitinGNair 16d ago
I have no idea. I know nothing about robotics. I just like the notion of it. :)
I am a first year engineering student so, really new into this stuff.
2
u/OlenaDoubleChecks 16d ago
Do CS50 for the fundamentals, then pick a small robotics project and read docs as you get stuck. Docs alone are rough when you don't know what to look for. Courses without building something just stick for about a week.
1
2
0
u/nullptr_0x 13d ago
A formal course is definitely the best way. It is tried and tested. CS50 by Harvard is excellent. I have a course as well that is a bit more interactive. You can try that. I made it for some friends.
Programming 101 in Python https://understandit.dev
10
u/desrtfx but other languages pro 17d ago
If you are aware of that, why did you not search the subreddit before posting? You will only get the suggestions that apply to everybody.
There is a wiki with recommended learning resources in the sidebar.
Do the MOOC Python Programming 2026 from the University of Helsinki.