Question
I NEED HELP WITH THIS PYTHON ASSIGNMENT (TEXTBOOK SOLUTION IS INCORRECT) Spreadsheet programs such as Microsoft Excel or OpenOffice Calc have an option to export
I NEED HELP WITH THIS PYTHON ASSIGNMENT (TEXTBOOK SOLUTION IS INCORRECT)
Spreadsheet programs such as Microsoft Excel or OpenOffice Calc have an option to export data into CSV files. In this exercise, you will create a program that will read in a spreadsheet (in CSV format) and manipulate it. It should print a menu for the user that allows them to print the data, delete a row or column, insert a row or column, change a value in a cell, and output the data in CSV format.
Example: a) print
b) delete
c) insert
d) change a value
e) output to CSV
f) exit
Issues to consider:
Use Python's csv module to read in a spreadsheet. Choose an appropriate data structure to store the data. Should you use lists, tuples or dictionaries?
Construct a driving loop in your program that will prompt for the operations specified previously. A useful interface is to allow choices to be specified with a single letter related to the operation - e.g. for delete. EXAMPLE FOR PROBLEM:
Use the following sample code to get you started with a csv file https://repl.it/I9Xe/2
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started