List Statistics

Medium Lists
Solve in Playground →

Problem Statement

Write a Python program to calculate and print the sum, average, maximum, and minimum of a list of numbers formatted appropriately.

Input Format

Space-separated numbers.

Output Format

Print Sum, Average (rounded to 2 decimal places), Maximum, and Minimum.

Constraints

1 <= len(arr) <= 100

Sample Input

10 20 30 40 50

Sample Output

Sum: 150, Average: 30.00, Max: 50, Min: 10

Explanation

Compute statistical metrics for the list.

Starter Code

def list_stats(arr):
    # Write your code here
    pass

arr = list(map(int, input().split()))
list_stats(arr)

Limits

  • Time Limit: 1s
  • Memory Limit: 256MB

Embedded C Programming

Updated: March 15, 2026
Intermediate

Embedded systems rely on efficient low-level programming to interact directly with hardware. In this course, you will learn how to write practical Embedded C programs used in real microcontroller-based systems. Rather than focusing only on theory, this course follows a practice-driven approach. Each lesson includes hands-on coding exercises that simulate real firmware development tasks used