Medium
Read a CSV by Column Name
Write the given CSV text (header first, n data rows) to
people.csv. Then read it with csv.DictReader and print the value of the column named on the last input line for every row.Input
n; the header; n rows; a column name.
Output
n lines.
Sample 1
Input
2 name,city,age Mim,Dhaka,20 Rafi,Sylhet,21 city
Output
Dhaka Sylhet
Sample 2
Input
1 a,b 1,2 b
Output
2
Output appears here