title: My program stops after 1 iteration, while comparing two lists
body: <p>I have a function which takes a main list, that has 3 lists inside, I want to take each list and relate it to another list of 3 elements. I want this to happen to the 3 lists inside of my main list.</p>
  
  <p>I really dont understand why it only iterates once.
  Note: if I delete the line 8, the code does the same, but I left it in there so my intention is noticed, which is a want an inner iteration to each list:</p>
  
  <pre><code>for item1 in range(3):# and execute this loop 3 times
  </code></pre>
  
  <p>Here is the code:</p>
  
  <pre><code>main_list =[["one","two","three"],["three","two","one"],["two","one","three"]]
  comparison_list = ["element1","element2","element3"]
  
  def correlator(list):
      count = -1
      for item in list:#I want to take each list
          try:
              for item1 in range(3):# and execute this loop 3 times
                  count += 1
                  print(f' {item[count]} is related to {comparison_list[count]}')
  
          except IndexError:
              pass
  
  correlator(main_list)
  </code></pre>
  
  <p>The result is:</p>
  
  <pre><code> one is related to element1
    two is related to element2
    three is related to element3
  </code></pre>
  
  <p>But I want it to be like this:</p>
  
  <pre><code>  one is related to element1
    two is related to element2
    three is related to element3
  
    three is related to element1
    two is related to element2
    oneis related to element3
  
    two is related to element1
    one is related to element2
    three is related to element3
  </code></pre>