I want to convert list into list of list. Example:
my_list = [\'banana\', \'mango\', \'apple\']
I want:
my_list = [[\'banan
Try This one Liner:-
map(lambda x:[x], my_list)
Result
In [1]: map(lambda x:[x], my_list) Out[1]: [['banana'], ['mango'], ['apple']]