Python - Built-in Functions

Python - Built-in Functions


The Python has a number of functions that are always available for use. These functions are called built-in functions. For example, print() function prints the given object on the screen or other standard output devices. These built-in functions are listed below in alphabetical order. For more details about any built-in function, please visit its page.

Python - Built-in Functions
FunctionDescription
Returns absolute value of a given number
The Python has a number of functions that are always available for use. These functions are called built-in functions. For example, Returns True if boolean value of all elements in an iterable are true, else returns false
print() Returns True if if boolean value of any item in an iterable is true, else returns false
function prints the given object on the screen or other standard output devices. These built-in functions are listed below in alphabetical order. For more details about any built-in function, please visit its page. Returns a readable version of an object. Replaces none-ascii characters with escape character
Returns the binary version of a number
Returns the boolean value of the specified object
Python - Built-in Functions Returns an array of bytes
Returns a bytes object
Returns True if the specified object is callable, otherwise False
Function Returns a character from the specified Unicode code.
Description Converts a method into a class method
Returns the specified source as an object, ready to be executed
abs() Returns a complex number
Deletes the specified attribute (property or method) from the specified object
Returns absolute value of a given number Creates a dictionary using an iterable object containing key-value pairs
Returns a list of the specified object properties and methods
all() Returns the quotient and the remainder when argument1 is divided by argument2
Takes a collection (e.g. a tuple) and returns it as an enumerate object
Returns True if boolean value of all elements in an iterable are true, else returns false Evaluates and executes an expression
Executes the specified code (or object)
any() Use a filter function to exclude items in an iterable object
Returns a floating point number
Returns True if if boolean value of any item in an iterable is true, else returns false Formats a specified value
Returns a frozenset object
ascii() Returns the value of the specified attribute (property or method)
Returns the current global symbol table as a dictionary
Returns a readable version of an object. Replaces none-ascii characters with escape character Returns True if the specified object has the specified attribute (property/method)
Returns the hash value of a specified object
bin() Executes the built-in help system
Converts a number into a hexadecimal value
Returns the binary version of a number Returns the id of an object
Allowing user input
bool() Returns an integer number
Returns True if a specified object is an instance of a specified object
Returns the boolean value of the specified object Returns True if a specified class is a subclass of a specified object
Returns an iterator object
bytearray() Returns the length of an object
Returns a list
Returns an array of bytes Returns an updated dictionary of the current local symbol table
Returns the specified iterator with the specified function applied to each item
bytes() Returns the largest item in an iterable
Returns a memory view object
Returns a bytes object Returns the smallest item in an iterable
Returns the next item in an iterable
callable() Returns a new object
Converts a number into an octal
Returns True if the specified object is callable, otherwise False Opens a file and returns a file object
Convert an integer representing the Unicode of the specified character
chr() Returns the value of x to the power of y
Prints to the standard output device
Returns a character from the specified Unicode code. Gets, sets, deletes a property
Returns a sequence of numbers, starting from 0 and increments by 1 (by default)
classmethod() Returns a readable version of an object
Returns a reversed iterator
Converts a method into a class method Rounds a numbers
Returns a new set object
compile() Sets an attribute (property/method) of an object
Returns a slice object
Returns the specified source as an object, ready to be executed Returns a sorted list
Converts a method into a static method
complex() Returns a string object
Sums the items of an iterator
Returns a complex number Returns an object that represents the parent class
Returns a tuple
delattr() Returns the type of an object
Returns the __dict__ property of an object
Deletes the specified attribute (property or method) from the specified object Returns an iterator, from two or more iterators