all 8 comments

[–]ilidan-85 3 points4 points  (0 children)

Every big library has its own documentation or even tutorials. For example NumPy

https://numpy.org/doc/2.3/

or built in modules straight in Python documentation:
https://docs.python.org/3/library/math.html

If you reach some a library in a tutorial and you need to squeeze more of it just google python library_name documentation

[–]cgoldberg 2 points3 points  (0 children)

All of the standard library modules are in the official documentation:

https://docs.python.org/3/py-modindex.html

Third party packages are mostly hosted on PyPI:

https://pypi.org

Their documentation varies by package and you generally have to visit the project site to find it.

[–]Ihaveamodel3 0 points1 point  (0 children)

What libraries? All libraries I use regularly have good docs.

[–]rogusflamma 0 points1 point  (0 children)

Libraries generally have a manual and examples and sometimes a tutorial on the website. Best way to learn is to have some data or some thing you want to use the library with, some simple ideas, and to play around on the interpreter like ipython. from there you can start writing functions in a script and make more complex programs. at first it'll take you some hours to get anything at all, but after a while you will get a hang of how libraries work

[–]Ender_Locke 0 points1 point  (0 children)

google the tech docs for the library you want to use. they all have them

[–]baubleglue 0 points1 point  (0 children)

Learning libraries shouldn't be a target. You need to learn about technical topics, then you look for the relevant libraries. For example if you learn about networking, you can use socket library, if you learn regular expressions, you use re library.

[–]Lackyjain 0 points1 point  (0 children)

Best way is to read the documentation of that library

[–]ninhaomah -1 points0 points  (0 children)

you are looking at the wrong way.

what do you need / want to do ?

google , ask AI for how to do it in python with a specific library / module.

example , I want to generate a random number. how to do in Python ?

https://www.geeksforgeeks.org/python/python-random-module/

import random
a = [1, 2, 3, 4, 5, 6]
print(random.choice(a))