LearnPy Hub
← File Handling problems
Medium

CSV Average

Read rows of name,mark until END, write them to marks.csv with a header name,mark, then read it with csv.DictReader and print the average mark with 2 decimals.

Input

Rows, then END.

Output

The average.

Sample 1

Input
Mim,90
Rafi,80
END
Output
85.00

Sample 2

Input
A,1
END
Output
1.00
solution.py
Output appears here
CSV Average · Python practice problem · LearnPy Hub