Question: Question 6 : Working with CSV Files Objective: Create a Python script that writes the following data to a CSV file: begin { tabular
Question : Working with CSV Files
Objective: Create a Python script that writes the following data to a CSV file:
begintabularlcl
hline multicolumnc Name & Age & multicolumnc Occupation
hline John Doe & & Data Analyst
hline Jane Smith & & Software Engineer
hline Mark Turner & & Intern
hline
endtabular
Instructions:
Use the csv module to create a file named people.csv
Write the data to the CSV file using writerows from the csv writer object.
Read the file back and print the contents in the console using csv reader.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
