Python Practice › List Programs › Program 26

max, min and sum

EasyList Programs · 26 of 100

Write a Python program to get the maximum, minimum and sum of a list with built-in functions.

Advertisement
Input
[8, 3, 15, 6]
Output
15 3 32

Approach

  1. max(), min(), sum().

Solution

Python
numbers = [8, 3, 15, 6]print(max(numbers), min(numbers), sum(numbers))
Output
15 3 32

Learn the concept

New to this topic? Read the lesson, then come back.

More list programs

← All 100 List Programs

Leave a Comment