I have a list of lists, like
outlist = (['d1', 'd2', 'd3'], ['d4', 'd5', 'd6'])
I want to append ['d7', 'd8', 'd9'] to the above list
outlist.append(['d7', 'd8', 'd9']) gives me error
Traceback (most recent call last):
File "<pyshell#42>", line 1, in <module>
outlist.append(['d7','d8','d9'])
AttributeError: 'tuple' object has no attribute 'append'
outlist.insert(['d7', 'd8', 'd9']) also gives me an error
Traceback (most recent call last):
File "<pyshell#44>", line 1, in <module>
outlist.insert(['d7','d8','d9'])
AttributeError: 'tuple' object has no attribute 'insert'
Need help in resolving this. I would also want to write the 'outlist' to a csv file. How do I do that?