Python interlacing two lists

Question:

I have two lists:

names = ['some_name', 'other_name']
status = ['queued', 'in-progress']

how can I join them to look like this:

list = ['some_name queued', 'other_name in-progress']

Answers:

Here is one way:

names = ['some_name', 'other_name'] 
status = ['queued', 'in-progress']

result = ['{} {}'.format(name, status) for name, status in zip(names, status)]

print(result)

Output:

['some_name queued', 'other_name in-progress']
Answered By: Isma
Categories: questions Tags: ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.