LearnPy Hub
← Pandas: Cleaning & Preprocessing problems
Easy

Mean Skips the Gaps

Print the mean of the math marks that are present with 1 decimal (pandas skips missing values), or no marks if none are present.

Input

Lines 'name math english' ('-' = missing), then END.

Output

One line.

Sample 1

Input
Mim 88 79
Rafi - 91
Sara 95 -
Tuhin 70 -
END
Output
84.3

Sample 2

Input
A 1 2
END
Output
1.0
solution.py
Output appears here
Mean Skips the Gaps · Python practice problem · LearnPy Hub