+ 1
Where should i get all the modules details??
Well actually i want all the details about the modules. Like the variables a modules contains, the works of those variables etc. Is there any resources or website where i can learn about all of these?? Thanks in advance...!!
3 Respostas
+ 2
I think you might be looking for the dir() function. dir() returns all the names a module defines. For example,
>>> import math
>>> dir(math)
# Outputs a list of all functions and variables in the module
--------------------------
If you want to find out what a specific variable or function does, use help():
>>> help(math.cos)
Help on built-in function cos in module math:
cos(...)
cos(x)
Return the cosine of x (measured in radians).
You can also use help(math) for help with all functions and variables.
--------------------------
The Python documentation can help if you want to learn more about how modules work:
https://docs.python.org/3/tutorial/modules.html
And finally, if you're looking for a specific module, googling it is probably a good idea.
--------------------------
Hope this helped :)
0
thank u very much...it will be helpful for sure...!! 💜
0
No problem :)