CBSE Class 12 Computer Science
Question 108 of 136
Data File Handling — Question 47
Back to all questionsThe code imports the CSV module, opens 'contacts.csv' in append mode, prompts the user for input of a name and phone number, writes data to the CSV file, and then closes the file.