Skip to content
C

Problem 1: Manual Mean and Median Calculator

Easypython

Problem Description

Write a Python program that calculates the mean and median of a list of numbers without using any built-in statistics functions (implement the logic manually using loops and sorting).

Input

A list of numbers.

Output

The calculated mean and median.

Constraints

  • The list will contain at least 1 number.

Example Input

text
[7, 2, 9, 4, 5]

Example Output

text
Mean: 5.4 Median: 5

Concepts Covered

Loops, sorting, manual statistical calculation.

Input (stdin)

Output

Run your code to see output here...