Python Built in Functions

len()Returns the length of an object, like a string, list, or tuple.
print()Outputs the given message or variable value to the console.
range()Generates a sequence of numbers, often used in loops.
int()Converts a value to an integer type.
str()Converts a value to a string type.
type()Returns the type of the variable or value.
float()Converts a value to a floating-point number.
max()Finds the maximum value in an iterable or two or more arguments.
min()Finds the minimum value in an iterable or two or more arguments.
abs()Returns the absolute value of a number.
sum()Adds up all elements in an iterable.
sorted()Returns a sorted list from the given iterable.
zip()Aggregates elements from two or more iterables.
map()Applies a function to all items in an input list.
filter()Constructs an iterator from elements of an iterable for which a function returns true.
list()Converts an iterable to a list.
tuple()Converts an iterable to a tuple.
set()Converts an iterable to a set, removing duplicate items.
dict()Creates a dictionary from an iterable of key-value pairs.
all()Returns True if all elements of the iterable are true (or if the iterable is empty).
any()Returns True if any element of the iterable is true. If the iterable is empty, returns False.
round()Rounds a number to a specified number of decimals.
enumerate()Adds a counter to an iterable and returns it in a form of enumerate object.
reversed()Returns a reverse iterator.
slice()Returns a slice object representing the set of indices specified by range(start, stop, step).
globals()Returns a dictionary representing the current global symbol table.
locals()Updates and returns a dictionary representing the current local symbol table.
compile()Compiles source into code or AST objects.
exec()Executes dynamically created Python code.
eval()Evaluates a Python expression which is a string as Python code.