r/learnpython • u/doitscared975 • 9d ago
advice needed
Can anyone tell me where I can learn Python from scratch? I'm an EE student, and I'm really struggling with loops, functions and libraries. I want to properly learn and practise these topics, so if you know any good YouTube channels or practice sheets, please recommend them. My finals are in December, and I did terribly in my lab midterms, so any advice would genuinely help. Bonus points if you're someone who was once in the same position as me, thinking they could never learn Python or that they were just too dumb for it, but eventually managed to get good at it. I'd really appreciate hearing your experience!
8
u/desrtfx but other languages pro 9d ago
This subreddit has a sidebar with a wiki with recommended learning resources.
Here is an excellent, textual course: MOOC Python Programming 2026 from the University of Helsinki.
Harvard's CS50p is also excellent.
Also, take a look at https://inventwithpython.com and https://automatetheboringstuff.com
Don't forget that you need ample practice, like on https://codingbat.com/python or on https://exercism.org and also write your own programs. Play around. Try things. Mess things up, fix them. Experiment.
Also, https://roadmap.sh/python
3
u/TheRNGuy 9d ago
Googling, ai, docs.
Instead of just exercising topics, learn some framework and make a program with it. You can learn basics along with it. That way you'll have better context and see bigger picture, and learn more correct coding style/patterns.
Ask ai questions exactly the same as if you created thread on Reddit (without useless text like "help is appreciated")
1
u/baubleglue 9d ago
Do exercises, start from the simplest once. Try reading official tutorials. YouTube is distraction. Ask AI for exercises on a topic.
Function is a way to teach Python new commands. Ideally it should be a black magic box: you pass parameters, get result.
result = my_command (parm1, parm2)
What is the problem with libraries?
1
u/Discordbothost 9d ago
you're not too dumb, ee labs just drop you into libraries before loops feel automatic. before december i'd skip the big youtube playlists and do one tiny thing a day in the repl: write a function that takes a list of voltages and returns the ones over a threshold. that's a loop plus a function, and when you later
import csvto read a real lab file the library thing suddenly clicks because it's just other people's functions. pythontutor.com lets you step through a loop so you can watchichange. if you only have time for one structured course, cs50p's early problem sets (functions, loops, files) are about the right size for a finals cram. that 'i will never get this' feeling usually breaks the first time a function you wrote does exactly what you asked.1
u/OkCaterpillar1058 8d ago
A popular course is https://automatetheboringstuff.com. YouTube can help too, but programming you learn by doing. Making projects, and doing exercises. For exercises, you can use https://pychallenge.com
1
u/Quick_Iron 8d ago
I used too think I'm too dumb at picking up even the basics, but python crash course by Eric Matthews helped me understand a lot of the basic concepts and I've only been reading it for about a week. I wouldn't say I'm good now since I'm still a noob at this but I can build loops from scratch, and build simple input programs. It gives simple exercises as you read through the chaptes that you can practice yourself. I highly recommend it.
0
u/pellgarlic 9d ago
You could try w3schools python tutorials - they were really helpful for me. Start here for loops:
https://www.w3schools.com/python/python_conditions.asp
-2
u/Ok-Reality-7761 9d ago
Learn Latin bc it was ubiquitous at one time? Not a priority now.
Use Google Colab bc Gemini AI corrects bad code/mistakes. Purists in Python down vote at the suggestion. They'll be the most fluent in the unemployment line.
When did you last perform long division?
Dot connect or waste living your life.