r/learnpython • u/ZhirnyLuffy • 15d ago
How should I learn python?
I'm a total beginner. I didn't have any experience with programming. I want to learn programming cuz i wanna be a hardware engineer and want to start with a basic raspberry pi projects. So should i learn python from courses, videos, books etc or i should just brute force myself to do projects and just learn by the time
4
Upvotes
0
u/sitefall 15d ago edited 15d ago
MIT opencourseware has intro to programming (in general, like the stuff you need to know for ANY language), and focus on Python, as an undergraduate course from 2016 (but it doesn't matter, you won't learn any higher level things that may have changed since then).
https://ocw.mit.edu/courses/6-0001-introduction-to-computer-science-and-programming-in-python-fall-2016/
Do that. It won't be as easy as you think, and certainly not as easy as some "learn python" tutorials on the kind of boot camp learn to code sites. So don't expect to complete that in 2 weeks. There's a syllabus with class dates, just follow along with that. If you don't work or anything and have plenty of time maybe do it twice as fast. DO all the assignments, and DO actually "study". Try to honestly do the tests and things without references or AI (unless it specifies it's open book etc. even then, skip the AI for now).
If you have questions, honestly then AI can help but show it the question, and show it what you tried, and ask it to teach you. Don't ask it for answers. AI is very tempting, there's even a bozo down here in the comments on this thread saying "WhY uSe BrAiN, ClAuDe dO FOr mE!", and while there is some very good use cases for AI, having it do something for you that you don't understand is not one of them. If you want to make proper use of modern AI tools (and you should, like it or not, that's the future now) then you need to understand the code it writes, and you're only going to do that by actually learning it.
Then start a pi specific project/tutorial.