I've got this method:
def add_duty(self, new_duty):
self.duty.append(new_duty)
which is used to append some duties to employees:
manager_employee[2].add_duty(['Do sth', 'Shine'])
manager_employee[2].add_duty(['Swag'])
manager_employee[2].add_duty(['Lag'])
If printed it shows duties in this way:
[['Do sth', 'Shine'], ['Swag'], ['Lag']]
I want to merge this list of lists into a single one. I've been trying to do that with regular ways of merging list of lists but it seems that class list behave in different way(I'm a newbie). And when merged it displays:
['D', 'o', ' ', 's', 't', 'h', 'S', 'h', 'i', 'n', 'e', 'S', 'w', 'a', 'g', 'Lag']
I'm looking for this effect:
['Do sth', 'Shine', 'Swag', 'Lag']
I've looked over some forums but found no answer.