I have the follwing lists an I want to store them in the csv
example bellow. Can you help? I have seen relevant post but the obtained csv
is not what I want. I past the output since now accoring to the afforementioned post.
list1 = ['str1', 'str2','str3']
list2 = ['str1']
list3 = ['str1', 'str2']
lists.append(list1)
lists.append(list2)
lists.append(list3)
for l in lists:
'''save each list in a csv row where each element of the
list will be stored in separete cell.'''
CSV example:
cell1 cell2 cell3
row1 str1 str2 str3
row2 str1
row3 str1 str2
CSV undesired(place all strings in the first cell):
cell1 cell2 cell3
row1 str1 str2 str3
row2 str1
row3 str1 str2