Math Helpers
sum, min, max, abs, round, pow, divmod, any and all.
Beginner
This is an overview — pick a sub-topic below.
Sub-topics (3)
sum(), min() and max()
Aggregate an iterable; min/max accept key= and default=.
Beginner♥ 0🔖 0💬 0
abs() and round()
Absolute value, and rounding to a number of digits (round-half-to-even!).
Beginner♥ 0🔖 0💬 0
any() and all()
any is True if at least one item is truthy; all is True if every item is (True for empty).
Beginner♥ 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.