Xii Cs Worksheet-csv File
Xii Cs Worksheet-csv File
(i) Read all the data from the file in the form of the list and display all those records for which language is in
Hindi.
(ii) Count the number of records in the file.
Write a Program in Python that defines and calls the following user defined functions:
(i) ADD() – To accept and add data of a teacher to a CSV file ‘teacher.csv’. Each
record consists of a list with field elements as tid, name and mobile to
storeteacherid,teacher name and teacher mobile number respectively.
(ii) COUNTRECORD() – To count the number of records present in the CSV file
named
‘teacher.csv’.
A CSV file named ‘Winner_details.csv’ contains the following information:-
• Winner name
• Event name
• Points scored
• Position secured