I'm struggling to define what I mean in text so as an example:
>>> list_1 = ["text text text", "text more text", "also text", "so much text"]
>>> list_2 = [0, 1, 0, 1]
>>> list_combine = some_function(list_1, list_2)
>>> print(list_combine)
[["text text text", 0],
["text more text", 1],
["also text", 0],
["so much text", 1]]
Obviously one could simply perform a loop over range(len(one of the lists)) however I'm performing this on lists with several thousand items and wondered if there was a preexisting function that did this in a quicker way? I assume Numpy likely holds the answer but I'm unsure on the search terms to find it if it does exist.