Python Built-in Functions Reference

Every Python 3 built-in function with signature, return type and what it does

Searchable reference for all Python 3 built-in functions — type conversion, iterables, math, I/O, and introspection — with each function's signature, return type, and a concise description.

What counts as a Python built-in function?

Built-in functions are the names available in every Python program without importing anything, because they live in the builtins module that is always in scope. Examples include print, len, range, sorted, and isinstance. Type constructors like int, str, list, and dict are also exposed as built-ins and behave like functions.

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.
  • sorted returns a new list; list.sort() sorts in place and returns None.
  • This reference covers the common built-ins, not every name or built-in exception. Consult the official docs for version-exact behavior.