i have already finished the first function parsecsv def pars

i have already finished the first function parse_csv

def parse_csv(filename):

now i want to wite function to convert it to xml

def covert_2_xml(list):

and another function to convert it to json

def convert_2_json(list):

i have to hard copy only records and patient and all the csv file information will be given when i call the functions later passing the file name as a parameter.

here is the sample input file:

the xml output should be like:

and the json output should be like:

Solution

main.py

i have already finished the first function parse_csv def parse_csv(filename): now i want to wite function to convert it to xml def covert_2_xml(list): and anoth

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site