Python Built-in Functions

Python has several functions that are readily available for use. These functions are called built-in functions. In this reference page, you will find all the built-in functions in Python.

Python abs()

returns absolute value of a number

Python any() function

Checks if any Element of an Iterable is True

Python all()

returns true when all elements in iterable is true

Python ascii()

Returns String Containing Printable Representation

Python bin()

converts integer to binary string

Python bool()

Converts a Value to Boolean

Python bytearray()

returns array of given byte size

Python callable()

Checks if the Object is Callable

Python bytes()

returns immutable bytes object

Python chr()

Returns a Character (a string) from an Integer

Python compile()

Returns a Python code object

Python classmethod()

returns class method for given function

Python complex()

Creates a Complex Number

Python delattr()

Deletes Attribute From the Object

Python dict()

Creates a Dictionary

Python dir()

Tries to Return Attributes of Object

Python divmod()

Returns a Tuple of Quotient and Remainder

Python enumerate()

Returns an Enumerate Object

Python staticmethod()

transforms a method into a static method

Python filter()

constructs iterator from elements which are true

Python eval()

Runs Python Code Within Program

Python float()

returns floating point number from number, string

Python format()

returns formatted representation of a value

Python frozenset()

returns immutable frozenset object

Python getattr()

returns value of named attribute of an object

Python globals()

returns dictionary of current global symbol table

Python exec()

Executes Dynamically Created Program

Python hasattr()

returns whether object has named attribute

Python help()

Invokes the built-in Help System

Python hex()

Converts to Integer to Hexadecimal

Python hash()

returns hash value of an object

Python input()

reads and returns a line of string

Python id()

Returns Identify of an Object

Python isinstance()

Checks if a Object is an Instance of Class

Python int()

returns integer from a number or string

Python issubclass()

Checks if a Class is Subclass of another Class

Python iter()

returns an iterator

Python list()

creates a list in Python

Python locals()

Returns dictionary of a current local symbol table

Python len()

Returns Length of an Object

Python max()

returns the largest item

Python min()

returns the smallest value

Python map()

Applies Function and Returns a List

Python next()

Retrieves next item from the iterator

Python memoryview()

returns memory view of an argument

Python object()

creates a featureless object

Python oct()

returns the octal representation of an integer

Python ord()

returns an integer of the Unicode character

Python open()

Returns a file object

Python pow()

returns the power of a number

Python print()

Prints the Given Object

Python property()

returns the property attribute

Python range()

return sequence of integers between start and stop

Python repr()

returns a printable representation of the object

Python reversed()

returns the reversed iterator of a sequence

Python round()

rounds a number to specified decimals

Python set()

constructs and returns a set

Python setattr()

sets the value of an attribute of an object

Python slice()

returns a slice object

Python sorted() function

returns a sorted list from the given iterable

Python str()

returns the string version of the object

Python sum()

Adds items of an Iterable

Python tuple()

Returns a tuple

Python type()

Returns the type of the object

Python vars()

Returns the __dict__ attribute

Python zip()

Returns an iterator of tuples

Python __import__()

Function called by the import statement

Python super()

Returns a proxy object of the base class