Skip to content
CampusEduX

Problem 1: Manual Mean and Median Calculator

Easypython
Learn the Concept: Basic Statistics

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.

Related Problems

  • Problem 2: Variance and Standard Deviation Calculator
    Easy · python
    Solve Problem
  • Problem 3: Find the Mode Manually
    Easy · python
    Solve Problem
  • Problem 4: Outlier Detector Using Standard Deviation
    Easy · python
    Solve Problem

Input (stdin)

Output

Run your code to see output here...