Builtins
Python's built-in functions are always available without importing. This guide covers the most essential built-in functions for everyday programming. The guide walks through Type Conversion, Iteration & Collection Functions, Numeric Operations, Object Introspection. Functions like `int()`, `float()`, `str()`, `bool()`, `list()`, `dict()`, `set()`, and `tuple()` convert values between types. Use `int()` for string-to-integer conversion, `str()` for string representation. `map()`, `filter()`, `zip()`, `enumerate()`, `sorted()`, `reversed()`, `range()`, `iter()`, and `next()` help process iterables. `enumerate()` adds an index counter, `zip()` combines multiple iterables. `abs()`, `round()`, `pow()`, `sum()`, `min()`, `max()`, and `divmod()` handle numeric computations. `round()` uses banker's rounding, `divmod()` returns (quotient, remainder). The guide is organized into 4 sections that build on each other, each pairing a prose explanation with runnable code. Browse the individual functions covered by this guide in the Built-in Functions category. Key APIs covered include print(), len(), range(), type(), int(), float(). Related guides: string, list, dict, os, re.