Medium
Each Student's Average
For each student, print the average of the marks they have (missing ones are skipped) with 1 decimal, using
df[['math', 'english']].mean(axis=1). Print no marks for a student with none.Input
Lines 'name math english' ('-' = missing), then END.
Output
Lines.
Sample 1
Input
Mim 88 79 Rafi - 91 Sara 95 - Tuhin 70 - END
Output
Mim 83.5 Rafi 91.0 Sara 95.0 Tuhin 70.0
Sample 2
Input
A 1 2 END
Output
A 1.5
Output appears here