title: Loop in two lists
body: <p>I have these lists:</p>
  
  <pre><code>list1 = [3, 5, 2, 1, 9]
  list2 = [6, 9, 1, 2, 4]
  list3 = []
  list4 = []
  </code></pre>
  
  <p>and I want to pass these formula:</p>
  
  <pre><code>x = a/b
  y = 1/b
  </code></pre>
  
  <p>in which a is every value in list1 and b is every value in list2 and append the result of calculations into two empty lists - list3 and list4.</p>
  
  <p>This is what I have but it's a disaster haha :(</p>
  
  <pre><code>u = 0
  while u&lt;len(list1):
      for a in list1:
          for b in list2:
              x = a/b
              y = 1/b
              u+=1
              list3.append(x,)
              list4.append(y,)
  </code></pre>
  
  <p>Anyone can help me with this?</p>