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.
0
Upvotes
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.