Python’s built-in functions are always available — no import needed — because
they live in the builtins module that is in scope everywhere. They cover type
conversion, iteration, math, I/O, and introspection. This is a searchable offline
reference with signatures and return types.
How it works
Each entry lists the call signature and the return type so you can see at a glance what a function expects and produces:
- Type constructors (
int,str,list,dict,set) build or convert values and are exposed as callables. - Iterable tools (
map,filter,zip,enumerate,sorted,reversed) transform sequences; several return lazy iterators rather than lists. - Math (
abs,sum,min,max,round,pow,divmod) operate on numbers. - Introspection (
type,isinstance,getattr,dir,vars,hasattr) inspect objects at runtime. - I/O and execution (
print,input,open,repr,eval) interact with the outside world.
Example
enumerate and zip are the idiomatic way to iterate:
for i, (name, score) in enumerate(zip(names, scores), start=1):
print(i, name, score)
map/filter return lazy iterators — wrap in list(...) to materialize.
Notes
- Many iterable functions (
map,filter,zip,range,reversed) return lazy iterators in Python 3 — they compute values only as consumed. sortedreturns a new list;list.sort()sorts in place and returnsNone.- This reference covers the common built-ins, not every name or built-in exception. Consult the official docs for version-exact behavior.