+ 1
What is the elements inside the module "random" and "math" ?
The courses give a general knowledge about modules and their use/call .... But it's fine to give a table witch give every module with the sub-function/methods inside it
2 Antworten
+ 4
You can also use dir function to check what functions a module has and help function to check module's documentation through Python's help interface.
print(dir(random))
help() or help("math") or help(math)
+ 1
Mohamed MECHBAL
You need to see documentation of python libraries
https://docs.python.org/3/library/random.html
https://docs.python.org/3/library/math.html