Skip to content
UPEEC

Built-in Functions

The ~70 functions available everywhere without importing anything — from print() and len() to eval() and super().

Beginner
Comments 0

Built-ins are implemented in C and are fast. Knowing them well removes the need for many hand-written loops.

Sub-topics (6)

Types and Conversion

Constructors for the core types: int, float, complex, str, bool, list, tuple, set, dict.

Beginner♥ 0🔖 0💬 0

Iteration Helpers

range, enumerate, zip, map, filter, sorted, reversed, iter and next.

Beginner♥ 0🔖 0💬 0

Math Helpers

sum, min, max, abs, round, pow, divmod, any and all.

Beginner♥ 0🔖 0💬 0

Objects and Attributes

open, super, property, classmethod, staticmethod, isinstance, issubclass and the attribute helpers.

Easy♥ 0🔖 0💬 0

Dynamic Code Execution

eval, exec and compile run Python code from strings — powerful and dangerous.

Intermediate♥ 0🔖 0💬 0

Spotted a mistake or want to add detail? Suggest an improvement — Content Contributors' edits are reviewed by editors before they go live.

Discussion (0)

Sign in or join free to ask questions and discuss this topic.