list=[['name1', 'maths,english'], ['name2', 'maths,science']]
I have a nested list that likes something like this, I am trying to work out how to format it so that the out put would be something like the following:
name1, maths,english
name2, maths,science
I have tried using regex to no avail. How would I go about formatting or manipulating the list output to get something like the above?