fork download
  1. list_1 = ["text text text", "text more text", "also text", "so much text"]
  2.  
  3. list_2 = [0, 1, 0, 1]
  4. list_combine = []
  5. for f, b in zip(list_1, list_2):
  6. list_combine.append((f, b))
  7.  
  8. print(list_combine)
Success #stdin #stdout 0.02s 9116KB
stdin
Standard input is empty
stdout
[('text text text', 0), ('text more text', 1), ('also text', 0), ('so much text', 1)]