I have a list:
list = ['Name0, Location0', 'Phone number0', 'Name1, Location1', 'Phone number1']
I want to split it as below
list = ['Name0', 'Location0', 'Phone number0', 'Name1', 'Location1', 'Phone number1']
I tried code below but it doesn't work.
list = ['Name0, Location0', 'Phone number0', 'Name1, Location1', 'Phone number1']
newlist =[]
newList = [line[0].split(',') for line in list]
print(newList)
How can I do it?