Question: Using python3 as programming language, write a function that takes a list of strings as inputs, and returns a single string created by joining all

Using python3 as programming language, write a function that takes a list of strings as inputs, and returns a single string created by joining all the input strings together, with a comma separating them.

Now write another function that takes a list of lists of strings, applies the operation from previous question to each list, and writes the result as a row of an output file. The function should return the path to the file where the strings were written.

Finally, write the reverse of the previous question: write a function that takes in a filename (which we will assume is a CSV), and returns a list of lists of strings, where one row in the file corresponds to one list in the output list (and each value between the commas in the file row is one element in the list).

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!