title: List of paired elements in python
body: <p>I have to create a list of pairs from 2 lists of same length 'n'. So the pairs would look like [(list1[1],list2[1]),(list1[2],list2[2]),...,(list1[n],list2[n])]. The resultant list of dictionaries should be of length 'n'.However my records are getting repeated and from the length of the resultant list it seems like a cartesian product is getting generated.Given below is the code:</p>
  
  <pre><code>    pairs=[]
  for y in range(len(predicted_label)):
      pair={score_tweets[y],predicted_label[y]}
      pairs.append(pair)
  </code></pre>
  
  <p>Please note that both the lengths of scored_tweets = length of predicted label.</p>
  
  <p>Can anyone please help me out?</p>
  
  <p>Thanks!!!</p>