I have a list that I create by parsing some text.
Let’s say the list looks like
charlist = ['a', 'b', 'c']
I would like to take the following list
numlist = [3, 2, 1]
and join it together so that my combined list looks like
[['a', 3], ['b', 2], ['c', 1]]
is there a simple method for this?
The zip builtin function should do the trick.
Example from the docs: