Python: built-in functions

11
5

Description

len, range, enumerate, zip, sorted and other built-ins

Front / BackActions
min() / max()
the smallest / largest item
sum(iterable, start=0)
the total of the items
any(iterable) / all(iterable)
true if some / every item is true
isinstance(obj, cls)
whether obj is an instance of cls
filter(func, iterable)
keeps the items for which func is true
map(func, iterable)
applies func to every item, lazily
sorted(iterable, key=None)
a new sorted list
zip(a, b)
tuples of items taken in parallel
enumerate(iterable)
pairs (index, item)
range(start, stop, step)
a sequence of integers, stop excluded
len(x)
number of items in x