Home >>Python Built-in Functions
The Python language has some built-in functions. These built-in functions are basically those functions whose functionality is pre-defined in Python language. The python interpreter has some pre-defined functions that are always present to be used. These functions are referred to as Built-in functions. The built-in functions of Python language are listed below:
Function | Description |
---|---|
abs() | It is used to return the absolute value of a number. |
all() | It is used to return True if all items in an iterable object are true. |
any() | It is used to return True if any item in an iterable object is true. |
ascii() | It is used to return a readable version of an object. |
bin() | It is used to return the binary version of a number. |
bool() | It is used to return the boolean value of the specified object. |
bytearray() | It is used to return an array of bytes. |
bytes() | It is used to return a bytes object. |
callable() | It is used to return True if the specified object is callable. |
chr() | It is used to return a character from the specified Unicode code. |
classmethod() | It is used to convert a method into a class method. |
compile() | It is used to return the specified source as an object. |
complex() | It is used to return a complex number. |
delattr() | It is used to delete the specified attribute from the specified object. |
dict() | It is used to return a dictionary. |
dir() | It is used to return a list of the specified object's properties and methods. |
divmod() | It is used to return the quotient and the remainder when argument1 is divided by argument2. |
enumerate() | It takes a collection and return it as an enumerate object. |
eval() | It is used to evaluate and execute an expression. |
exec() | It is used to execute the specified code. |
filter() | It uses a filter function to exclude items in an iterable object. |
float() | It is used to return a floating point number. |
format() | It formats a specified value. |
frozenset() | It is used to return a frozenset object. |
getattr() | It is used to return the value of the specified attribute. |
globals() | It is used to return the current global symbol table as a dictionary. |
hasattr() | It is used to return True if the specified object has the specified attribute. |
hash() | It is used to return the hash value of a specified object. |
help() | It executes the built-in help system. |
hex() | It is used to convert a number into a hexadecimal value. |
id() | It is used to return the id of an object. |
input() | It is used for allowing user input. |
int() | It is used to return an integer number. |
isinstance() | It is used to return True if a specified object is an instance of a specified object. |
issubclass() | It is used to return True if a specified class is a subclass of a specified object. |
iter() | It is used to return an iterator object. |
len() | It is used to return the length of an object. |
list() | It is used to return a list. |
locals() | It is used to return an updated dictionary of the current local symbol table. |
map() | It is used to return the specified iterator with the specified function applied to each item. |
max() | It is used to return the largest item in an iterable. |
memoryview() | It is used to return a memory view object. |
min() | It is used to return the smallest item in an iterable. |
next() | It is used to return the next item in an iterable. |
object() | It is used to return a new object. |
oct() | It is used to convert a number into an octal. |
open() | It is used to return a file object. |
ord() | It convert an integer representing the Unicode of the specified character. |
pow() | It is used to return the value of x to the power of y. |
print() | It is used to print to the standard output device. |
property() | It gets, sets, and deletes a property. |
range() | It is used to return a sequence of numbers starting from 0 and increments by 1. |
repr() | It is used to return a readable version of an object. |
reversed() | It is used to return a reversed iterator. |
round() | It is used to round a numbers. |
set() | It is used to return a new set object. |
setattr() | It sets an attribute of an object. |
slice() | It is used to return a slice object. |
sorted() | It is used to return a sorted list. |
@staticmethod() | It converts a method into a static method. |
str() | It is used to return a string object. |
sum() | It is used to sum the items of an iterator. |
super() | It is used to return an object that represents the parent class. |
tuple() | It is used to return a tuple. |
type() | It is used to return the type of an object. |
vars() | It is used to return the __dict__ property of an object. |
zip() | It is used to return an iterator from two or more iterators. |