June 2017
Beginner
352 pages
8h 39m
English
But how can we find out what other functions are available in the math module?
The REPL has a special function help() which can retrieve any embedded documentation from objects for which documentation has been provided, such as standard library modules.
To get help, simply type help at the prompt:
>>> helpType help() for interactive help, or help(object) for help about object.
We'll leave you to explore the first form — for interactive help — in your own time. Here we'll go for the second option and pass the math module as the object for which we want help:
>>> help(math)Help on module math:NAME mathMODULE REFERENCE http://docs.python.org/3.3/library/math The following documentation is automatically generated from the Python ...
Read now
Unlock full access