Test Index
CBSE Class 12 Computer Science 2024 Paper Set 4
© examsnet.com
Question : 32 of 35
Marks:
+1,
-0
Sangeeta is a Python programmer working in a computer hardware company. She has to maintain the records of the peripheral devices. She created a csv file named
Peripheral.csv, to store the details. The structure of Peripheral.csv is :[P_id,P_name,Price]whereP_id is Peripheral device ID (integer)P_name is Peripheral device name (String)Price is Peripheral device price (integer)Sangeeta wants to write the following user defined functions :Add_Device() : to accept a record from the user and add it to a csv file, Peripheral.csv.Count_Device() : To count and display number of peripheral devices whose price is less than 1000.
Go to Question: