help()

help() provides us a built in document system in Python to explain us about the object. We can provide input argument about any specific object and get details about it.
help('print')
Output is here
Help on built-in function print in module builtins:

print(...)
    print(value, ..., sep=' ', end='\n', file=sys.stdout, flush=False)
    
    Prints the values to a stream, or to sys.stdout by default.
    Optional keyword arguments:
    file:  a file-like object (stream); defaults to the current sys.stdout.
    sep:   string inserted between values, default a space.
    end:   string appended after the last value, default a newline.
    flush: whether to forcibly flush the stream.
Try other functions.
help('dir')
Output
Help on built-in function dir in module builtins:

dir(...)
    dir([object]) -> list of strings
    
    If called without an argument, return the names in the current scope.
    Else, return an alphabetized list of names comprising (some of) the attributes
    of the given object, and of attributes reachable from it.
    If the object supplies a method named __dir__, it will be used; otherwise
    the default dir() logic is used and returns:
      for a module object: the module's attributes.
      for a class object:  its attributes, and recursively the attributes
        of its bases.
      for any other object: its attributes, its class's attributes, and
        recursively the attributes of its class's base classes.
Without any argument passed to help() we will get interpreter console and we can input any argument to get the details. We can close the console by entering quit at console.
help()
The console is here.
help>
We can get a list of available modules, keywords, symbols, or topics we can type "modules", "keywords", "symbols", or "topics".
help>  topics
A list of topics ( nearly 73 ) will be displayed. Any topic name can be entered to get details about the topics.
All Built in Functions in Python
max() Bitwise operators using format() int() float()



plus2net.com



Post your comments , suggestion , error , requirements etc here




We use cookies to improve your browsing experience. . Learn more
HTML MySQL PHP JavaScript ASP Photoshop Articles FORUM . Contact us
©2000-2020 plus2net.com All rights reserved worldwide Privacy Policy Disclaimer