Python’s Built-in Functions
Python built-in functions are a set of core functions that are readily available for use in any Python program without needing to import any external libraries.
These functions provide basic functionalities, ranging from simple data manipulation to advanced operations, making Python an efficient and versatile programming language.
-
abs()
Returns a number’s absolute value, which is its distance from zero, regardless of its sign. -
any()
Returns True if at least one element in the iterable is truthy and False otherwise. -
chr()
Returns a string that represents the character associated with the given Unicode code point. -
delattr()
Deletes the specified attribute from the input object. -
enumerate()
Returns an enumerate object that yields pairs of count and value from the iterable. -
getattr()
Returns the value of an attribute from an object. -
__import__()
Returns the top-level package or module specified by name. -
map()
Returns a map object that generates items by applying a transformation function to every item of the input iterable or iterables. -
max()
Returns the largest value in an iterable or series of arguments. -
memoryview()
Returns a memoryview object, which allows for efficient access to the data without copying it. -
min()
Returns the smallest value in an iterable or series of arguments. -
next()
Returns the next item from an iterator. -
reversed()
Returns an iterator that yields the elements of the input iterable in reverse order. -
round()
Returns a number rounded to the specified number of decimal places. -
setattr()
Modifies the input object by setting the specified attribute to the given value. -
super()
Returns a proxy object that delegates method calls to a parent or sibling class of the specified type. -
type()
Returns the type of the input object or a new class object.