+ 1

How to find out about modules?

For example, if I want to use random, how do I know the commands. Is there a website or something?

21st Mar 2018, 11:53 PM
Erik Umble
Erik Umble - avatar
4 Answers
+ 9
You can just type print(module_name.__doc__) or help(module_name). For example, if you wanted to know more about the sys module, you can enter print(sys.__doc__) or help(sys) into the interpreter.
22nd Mar 2018, 4:50 AM
Fox
Fox - avatar
+ 2
You can easily find indexes of the functions and parameters of modules on the internet. Just try and look up the name of the module, and find something on the official site or related site.
22nd Mar 2018, 12:04 AM
Dread
Dread - avatar
+ 2
If you google 'random python' the first link will probably be the offical python documentation on the module docs.python.org if i don't remember incorrectly just check that the url has 3.x instead of 2.x for correct version
22nd Mar 2018, 12:14 AM
Markus Kaleton
Markus Kaleton - avatar
+ 2
Thanks
22nd Mar 2018, 12:57 AM
Erik Umble
Erik Umble - avatar