LearnPy Hub
← Exceptions problems
Hard

Convert a Table

Read rows of name,score until a line END. Print the average of the valid scores (2 decimals) and the names whose score was invalid, comma-separated, or none.

Input

Rows, then END.

Output

Two lines.

Sample 1

Input
Mim,90
Rafi,abc
Sara,70
END
Output
80.00
Rafi

Sample 2

Input
A,1
END
Output
1.00
none
solution.py
Output appears here
Convert a Table · Python practice problem · LearnPy Hub