LearnPy Hub
← Pandas: DataFrames problems
Easy

Credits in CSE

Print the total credits of students in the CSE department (0 if none).

Input

Lines 'name dept cgpa credits', then END.

Output

One integer.

Sample 1

Input
Mim CSE 3.82 120
Rafi EEE 3.41 98
Sara CSE 3.95 132
Tuhin BBA 3.60 110
Nadia CSE 3.71 125
END
Output
377

Sample 2

Input
A CSE 3.00 100
END
Output
100
solution.py
Output appears here
Credits in CSE · Python practice problem · LearnPy Hub