Original list:
lines = [['Name0, Location0', 'Phone number0'], ['Name1, Location1', 'Phone number1']]
I want to get new list as below:
newLines = [['Name0', 'Location0', 'Phone number0'], ['Name1', 'Location1', 'Phone number1']]
I tried code below but it is not work (How to split elements in list?):
for line in lines:
for token in line.split(', '):
result.append(token)
print(result)
How to make it work?