LearnPy Hub
← Pandas: Cleaning & Preprocessing problems
Easy

Total Marks With Gaps as Zero

Fill every missing mark with 0 using df.fillna(0), then print the sum of all math marks and all english marks on one line, as whole numbers.

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
253 170

Sample 2

Input
A 1 2
END
Output
1 2
solution.py
Output appears here
Total Marks With Gaps as Zero · Python practice problem · LearnPy Hub