title: What do I need to change about my code to fix this error message?
body: <p>Every time I try to run my code I seem to get this error message and I cannot seem to fix it. Does anyone know what it's trying to tell me to change?</p>
  <pre><code>trials = 10000
  num_different = 0
  for i in np.arange(trials):
      words = np.random.choice(p_and_p_words, 2)
      if len(words.item(0)) != len(words.item(1)) != len(words.item(2)) != len(words.item(0)):
          num_different = num_different + 1
  num_different = num_different / trials
  num_different
  </code></pre>
  <pre><code>IndexError: index 2 is out of bounds for axis 0 with size 2
  </code></pre>