Search code examples
pythonbuilt-in

How can I find Python Built-in functions?


I went through python 2x and 3x docs. It only mentions the following -

The Python interpreter has a number of functions and types built into it that are always available.

How and where are these built-in methods free floating?


Solution

  • Python is not object oriented based,it can also be functional.However if you want to look for the functions and their methods you can type in the interpreter

    >>>dir(__builtins__)
    

    This gets a list of built-in functions and variables in the directory,also you can use work around by typing

    >>>help('module')
    

    or

    >>help(function-name)