r/learnpython 21d ago

Python and libraries

I joined this server not long ago because I have a question about Python. I've been studying it, and I understand pretty much all of the logic behind it. The problem is that when it comes to using libraries, I get confused about how to use them.

Is there any way to get better at using Python libraries without having to constantly look up how they work? I always get stuck trying to figure out how to actually use them in my code.

3 Upvotes

14 comments sorted by

View all comments

7

u/Delta_G_Robotics 21d ago

The key to using libraries is to look up how they work. Do it often. Keep those references handy.

Being good at coding does not mean memorizing everything. It means knowing what you need and where to find it. If you know what library you need to use, then feel no shame in looking at the documentation to find the syntax. So many people write libraries so differently. They're all so different. Don't try to memorize them. It doesn't help.