Question: New to coding and I am completely lost on what to do. Any guidance will help import csv def write_csv(data,filename): Writes the given data
New to coding and I am completely lost on what to do. Any guidance will help
import csv
def write_csv(data,filename): """ Writes the given data out as a CSV file filename. To be a proper CSV file, data must be a 2-dimensional list with the first row containing only strings. All other rows may be any Python value. Dates are converted using ISO formatting. All other objects are converted to their string representation. Parameter data: The Python value to encode as a CSV file Precondition: data is a 2-dimensional list Parameter filename: The file to read Precondition: filename is a string representing a path to a file with extension .csv or .CSV. The file may or may not exist. """ pass # Implement this function
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
