LearnPy Hub
← Pandas: DataFrames problems
Medium

Either Condition

Print the number of students who are in BBA or have cgpa below 3.5, using |.

Input

Lines 'name dept cgpa credits', then END.

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
Output
2

Sample 2

Input
A CSE 3.00 100
END
Output
1
solution.py
Output appears here
Either Condition · Python practice problem · LearnPy Hub