LearnPy Hub
← Pandas: Cleaning & Preprocessing problems
Easy

Fill With Zero

Fill missing marks with 0 and print each student's total (math + english) as name total, totals as integers.

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 167
Rafi 91
Sara 95
Tuhin 70

Sample 2

Input
A 1 2
END
Output
A 3
solution.py
Output appears here
Fill With Zero · Python practice problem · LearnPy Hub