I have the following:
def fun(data):
...do some processing
ret_data = ['a','b','c']
return ret_data
l1 = []
l1.append(fun(data))
Output:
l1 is [['a','b','c']]
I don't want to create another list and unpack it to it. I want to use l1 but with the extra [] removed so that the output is:
Need:
l1=['a','b','c']
having a difficult time with this...