Python built-in functions are a functional library that comes with the core interpreter and can be called directly without importing any modules. They are the cornerstone for writing efficient Python code.
This page provides a complete list of all Python built-in functions, covering core categories such as mathematical operations, string processing, data type conversion, and iterator operations.
You can directly click on the function names below to jump to detailed tutorials (including syntax, parameter analysis, and practical examples), or use the browser shortcut Ctrl + F to quickly locate a specific function and start your reference immediately.
- Python abs() function - Returns the absolute value of a number
- Python all() function - Determines if all elements in an iterable are true
- Python any() function - Determines if any element in an iterable is true
- Python ascii() function - Returns a printable ASCII string representation of an object
- Python bin() function - Converts an integer to a binary string
- Python bool() function - Converts a value to a boolean
- Python breakpoint() function - Enters the debugger at a breakpoint
- Python bytearray() function - Creates a bytearray
- Python bytes() function - Creates an immutable byte sequence
- Python callable() function - Determines if an object is callable
- Python chr() function - Converts an integer to its corresponding character
- Python @classmethod decorator - Creates a class method
- Python compile() function - Compiles source code into a code object
- Python complex() function - Creates a complex number
- Python delattr() function - Deletes an object attribute
- Python dict() function - Creates a dictionary
- Python dir() function - Returns a list of object attributes
- Python divmod() function - Returns quotient and remainder
- Python enumerate() function - Returns an enumerate object
- Python eval() function - Executes a string expression
- Python exec() function - Executes dynamic Python code
- Python filter() function - Filters sequence elements
- Python float() function - Converts to a floating-point number
- Python format() function - Formats a value
- Python frozenset() function - Creates an immutable set
- Python getattr() function - Gets an object attribute
- Python globals() function - Returns the current global symbol table
- Python hasattr() function - Determines if an object has an attribute
- Python hash() function - Returns the hash value of an object
- Python help() function - Displays help information
- Python hex() function - Converts an integer to a hexadecimal string
- Python id() function - Returns the unique identifier of an object
- Python input() function - Gets user input
- Python int() function - Converts to an integer
- Python isinstance() function - Determines if an object is an instance of a class
- Python issubclass() function - Determines if a class is a subclass of another class
- Python iter() function - Creates an iterator
- Python len() function - Returns the length of an object
- Python list() function - Creates a list
- Python locals() function - Returns the current local symbol table
- Python map() function - Applies a function to a sequence
- Python max() function - Returns the maximum value
- Python memoryview() function - Creates a memoryview object
- Python min() function - Returns the minimum value
- Python next() function - Returns the next element from an iterator
- Python object() function - Creates a base class object
- Python oct() function - Converts an integer to an octal string
- Python open() function - Opens a file
- Python ord() function - Returns the Unicode code point of a character
- Python pow() function - Performs exponentiation
- Python print() function - Prints output
- Python property() function - Creates a property descriptor
- Python range() function - Creates a sequence of integers
- Python repr() function - Returns a printable representation of an object
- Python reversed() function - Returns a reverse iterator
- Python round() function - Rounds a number
- Python set() function - Creates a set
- Python setattr() function - Sets an object attribute
- Python slice() function - Creates a slice object
- Python sorted() function - Sorts a sequence
- Python @staticmethod decorator - Creates a static method
- Python str() function - Converts to a string
- Python sum() function - Calculates the sum
- Python super() function - Calls a parent class method
- Python tuple() function - Creates a tuple
- Python type() function - Returns the object type or creates a new class
- Python vars() function - Returns the object's attribute dictionary
- Python zip() function - Combines multiple iterables into tuples
- Python __import__() function - Dynamically imports modules