r/learnpython • u/notabananaperson1 • Mar 31 '24
How do I learn python?
When looking online I found some resources like Mimo and SoloLearn, I was wondering if these were the optimal ways to study python or if there are better ways.
1
u/CaptainFoyle Mar 31 '24
Do an introductory course to get the basics out of the way, and then: Find a project you'd like to do, and then learn as you go
1
u/notabananaperson1 Mar 31 '24
I honestly have no idea what I can do with python, you have any suggestions?
1
u/CaptainFoyle Mar 31 '24
Anything really.
Why did you want to learn it in the first place?
If you learn it just to learn it without wanting to or being excited about it or having a project, it's gonna be tough going.
1
u/notabananaperson1 Mar 31 '24
I honestly felt like learning something and though about a useful skill and came up with python, I honestly have no idea what you can do with it but currently still passionate to study it
1
u/CaptainFoyle Mar 31 '24
Ok. Then I'd strongly recommend finding a project you're excited about.
Wildlife cameras in the forest behind your house. A weather station in your garden. An alert that tells you when the ISS crosses over your house. A rain alert in the morning. Analyse and plot your finances. Make a simple game. Build a library database for your books with a GUI. Build an automatic watering system for your plants. Have a motion-sensor triggered camera that records what your cat is up to when you're not home. Find some publicly available data on a topic you're interested in and do data analysis.
Some good books are:
Impractical python projects
Python Crash course (I think there's a third edition now)
Make python talk
3
3
u/JamzTyson Mar 31 '24
Learning Python comes down to the same two things as learning anything: A bit of study and a lot of practice.
For the study part, some people prefer video tutorials, some prefer books, some prefer text tutorials. Pick a course that has a style that suits you.
For people that prefer a more academic style, the Harvard CS50P Introduction to Programming with Python course is excellent.
1
u/generalatreyu Mar 31 '24
CS50p is fantastic. Don’t even need to be an academic about it. You’ll learn far more if you do the work, but that’s true of everything. Even just on a video watching basis, if all you’ll do is watch, you won’t find better anywhere.
2
u/SirGeremiah Mar 31 '24
I think part of the answer depends on what you already know. There are free 100-day code camps (I'm currently using the one on Replit) that walk you from the very basics, up to (I think - haven't finished yet) intermediate stuff. If you're new to coding, or (like me) just not well developed in it, something like this is a good idea. They give you tasks to complete each day, which gets you into figuring out how to solve problems in Python.
If you already know another language, these might feel very slow going.
In either case, once you have a few basics, it's a very good idea to find some tasks of your own to automate - even if the automation isn't really useful. I was having some connection issues, so I set up a ping test on repeat (not in Python) and created Python scripts to do the analysis of the log files. This gave me something that I understood the purpose of, and knew what output I wanted, so all I had to do was solve the problem. It got me reading from files, creating some basic modules of my own for things I might want to do again, which got me focused on creating reusable code.
1
1
u/notParticularlyAnony Mar 31 '24
This reddit has some resources:
https://old.reddit.com/r/learnpython/wiki/index
Also search this sub this question is asked every week.
1
u/aleguarita Mar 31 '24
I like this channel:
https://youtube.com/@ClearCode?si=EqrropljKi4W4ReZ
He have some courses in Udemy and I think that the price is very good for the amount of content (even pygame or tkinter he put a full Python course before)
-5
1
Mar 31 '24
[removed] — view removed comment
1
u/notabananaperson1 Mar 31 '24
Thank you, are these courses I can start from zero on or do I need some prior knowledge to starting them
6
u/slingblade1980 Mar 31 '24
The apps are great to teach you the basics but will only get you so far. I used a combination of the apps, books and corey schafers youtube videos and have come a long way. However the best way to learn coding is to code everybody on here will tell you that