LearnPy Hub
← File Handling problems
Medium

Filter a CSV

Read rows name,dept,cgpa until END and save them as a CSV. Then read the CSV back and print the names in department CSE with cgpa ≥ 3.5, one per line (or none).

Input

Rows, then END.

Output

Names or none.

Sample 1

Input
Mim,CSE,3.8
Rafi,EEE,3.9
Sara,CSE,3.2
END
Output
Mim

Sample 2

Input
A,BBA,4.0
END
Output
none
solution.py
Output appears here
Filter a CSV · Python practice problem · LearnPy Hub