LearnPy Hub
← Dictionaries problems
Medium

Average per Student

Read n lines name mark (a student can appear several times). Print each student with their average mark (1 decimal), in the order they first appeared.

Input

n, then n lines.

Output

Lines.

Sample 1

Input
4
Mim 80
Rafi 70
Mim 90
Rafi 75
Output
Mim 85.0
Rafi 72.5

Sample 2

Input
1
A 50
Output
A 50.0
solution.py
Output appears here
Average per Student · Python practice problem · LearnPy Hub