One way:
storeFullNames = []
storeFullNames.append('Jane Doe')
storeFullNames.append('Ray Charles')
print(storeFullNames)
Second way:
storeListNames = []
for name in names:
if len(name.split(' ')) > 1:
storeListNames.append(name)
print(storeListNames)
both ways return a list with full names only…
solved How can I write a python code where it extracts full names from a list of names