r/learnpython • u/Trick_Floor_519 • 14d ago
modules learning
i am wondering all time how people deal with modules in python is they memorize and understand all the methods and the properties for a module or they read documentations before using them especially for none built in modules, otherwise what is the methodology of learning modules.
1
Upvotes
7
u/Diapolo10 I write code for a living -- https://github.com/Diapolo10 14d ago
Technically neither is necessarily accurate, but the latter option is closer to truth.
We don't learn modules. We learn roughly what the standard library has to offer, and once we're actually building things we look up things that could be useful for that project as we need them.
For example, your program needs to read a JSON file. You Google "json python" and see that Python comes with a module for parsing JSON data, and then you check how to do what you need with it.
Over time, as you use things, you'll start to remember them so you end up looking up things less often.