Mar-22-2019, 04:55 AM
Hi All,
I need help in solving the below problem -
my current list value are like this -
Thanks
#python
Adding some more details which I missed in original post-
I want to get the below output in another list -
I need help in solving the below problem -
my current list value are like this -
single_list1 = [ 'Group Name Details', 'Group Name', 'Person Phone Number', 'Father Name']I want to get the below output in another list -
list_output = [ 'Group', 'Name', 'Details', 'Group', 'Name', 'Person', 'Phone','Number', 'Father', 'Name']Please let me know if you can share the optimum code for this.
Thanks
#python
Adding some more details which I missed in original post-
single_list1 = [ 'New', ['Group Name Details'], ['Group Name'], ['Person Phone Number'], ['Father Name']]so basically it is a combination of multiple sublist and items and I want to keep them all as one single list items.
I want to get the below output in another list -
list_output = [ 'New', 'Group', 'Name', 'Details', 'Group', 'Name', 'Person', 'Phone','Number', 'Father', 'Name']