List of All the Functions
The table below lists all Python built-in functions along with a short description of each:
List of All the Functions in Python
In Python, built-in functions offer a variety of functionalities that make programming more efficient and streamlined. Below is a comprehensive table listing all Python built-in functions along with a brief description of each:
| Function | Description |
|---|---|
abs() |
Returns the absolute value of a number. |
aiter() |
Returns an asynchronous iterator from an asynchronous iterable. |
all() |
Returns True if all elements in an iterable are true. |
anext() |
Returns the next item from an asynchronous iterator. |
any() |
Returns True if any element in an iterable is true. |
ascii() |
Returns a printable representation of an object. |
bin() |
Converts an integer to a binary string. |
bool() |
Converts a value to True or False. |
breakpoint() |
Starts the debugger at the current point in the program. |
bytearray() |
Returns a mutable byte array. |
bytes() |
Returns an immutable bytes object. |
callable() |
Checks whether an object can be called like a function. |
chr() |
Returns the character for a given Unicode code point. |
classmethod() |
Converts a method into a class method. |
compile() |
Compiles source code into a code object. |
complex() |
Creates a complex number. |
delattr() |
Deletes an attribute from an object. |
dict() |
Creates a dictionary. |
dir() |
Returns a list of an object's attributes and methods. |
divmod() |
Returns the quotient and remainder of two numbers. |
enumerate() |
Adds a counter to an iterable. |
eval() |
Evaluates a Python expression. |
exec() |
Executes dynamically created Python code. |
filter() |
Filters elements of an iterable using a function. |
float() |
Converts a value to a floating-point number. |
format() |
Formats a value according to a specified format. |
frozenset() |
Creates an immutable set. |
getattr() |
Returns the value of a specified attribute. |
globals() |
Returns the current global namespace as a dictionary. |
hasattr() |
Checks whether an object has a specified attribute. |
hash() |
Returns the hash value of an object. |
help() |
Displays the documentation for an object. |
hex() |
Converts an integer to a hexadecimal string. |
id() |
Returns the unique identity of an object. |
input() |
Reads input from the user as a string. |
int() |
Converts a value to an integer. |
isinstance() |
Checks whether an object is an instance of a class. |
issubclass() |
Checks whether a class is derived from another class. |
iter() |
Returns an iterator from an iterable. |
len() |
Returns the number of items in an object. |
list() |
Creates a list. |
locals() |
Returns the current local namespace as a dictionary. |
map() |
Applies a function to every item in an iterable. |
max() |
Returns the largest item. |
memoryview() |
Returns a memory view object. |
min() |
Returns the smallest item. |
next() |
Returns the next item from an iterator. |
object() |
Creates a new base object. |
oct() |
Converts an integer to an octal string. |
open() |
Opens a file and returns a file object. |
ord() |
Returns the Unicode code point of a character. |
pow() |
Returns the value of a number raised to a power. |
print() |
Prints values to the console. |
property() |
Creates a managed property for a class. |
range() |
Generates a sequence of numbers. |
repr() |
Returns the official string representation of an object. |
reversed() |
Returns a reverse iterator. |
round() |
Rounds a number to the specified number of digits. |
set() |
Creates a set of unique elements. |
setattr() |
Sets the value of an object's attribute. |
slice() |
Creates a slice object. |
sorted() |
Returns a new sorted list from an iterable. |
staticmethod() |
Converts a method into a static method. |
str() |
Converts a value to a string. |
sum() |
Returns the sum of all items in an iterable. |
super() |
Returns a proxy object to access methods of a parent class. |
tuple() |
Creates a tuple. |
type() |
Returns the type of an object or creates a new type. |
vars() |
Returns the __dict__ attribute of an object. |
zip() |
Combines multiple iterables element-wise. |
__import__() |
Imports a module programmatically. |
Thank you
Top comments (0)