Medium
isin()
Read the table, then a line of department names. Print how many students belong to any of those departments, using
isin.Input
Lines 'name dept cgpa credits', then END. Then a line of departments.
Output
A count.
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 CSE EEE
Output
4
Sample 2
Input
A CSE 3.00 100 END BBA
Output
0
Output appears here