I have a list called 'mb', its format is:
['Company Name', 'Rep', Mth 1 Calls, Mth 1 Inv Totals, Mth 1 Inv Vol, Mth 2
...And so on
In the below code I simply append a new list of 38 0's. This is fine.
However in the next line I get an error: 'generator' object does not support item assignment
Can anyone tell me: 1) how to correct this error, and 2) why len(mb)-1 below is considered a generator.
Note: row[0] is merely a 'Company Name' held in another list.
mb.append(0 for x in range(38))
mb[len(mb)-1][0]=row[0]