Page 3 - demo_vp
P. 3

Here is another important function help()


                   Screenshot follows:

                   >>> help()

                   Welcome to Python 3.7's help utility!


                   If this is your first time using Python, you should definitely check out

                   the tutorial on the Internet at https://docs.python.org/3.7/tutorial/.

                   Enter the name of any module, keyword, or topic to get help on writing


                   Python programs and using Python modules.  To quit this help utility and

                   return to the interpreter, just type "quit".


                   To get a list of available modules, keywords, symbols, or topics, type

                   "modules", "keywords", "symbols", or "topics".  Each module also comes

                   with a one-line summary of what it does; to list the modules whose name


                   or summary contain a given string such as "spam", type "modules spam".

                   help> math.pow

                   Help on built-in function pow in math:


                   math.pow = pow(x, y, /)

                       Return x**y (x to the power of y).

                   help> random.randrange


                   Help on method randrange in random:

                   random.randrange = randrange(start, stop=None, step=1, _int=<class 'int'>) method of
                   random.Random instance

                       Choose a random item from range(start, stop[, step]).


                      This fixes the problem with randint() which includes the

                       endpoint; in Python this is usually not what you want.




               3
   1   2   3   4