+ 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?
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.
+ 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
+ 2
Thanks