Apply formula with two different lists
<p>I have two lists like this:</p>

<pre><code>listA = [51, 988, 1336, 2067, 1857, 3160]
listB = [1, 2, 3, 4, 5, 6]
</code></pre>

<p>I have to apply this formula in the lists:</p>

<pre><code>n / pi * ((x*0.1)+1)**2 - pi * (x*0.1)**2
</code></pre>

<p>The 'n' is the elements of listA, 'x' is the elements that correspond to the same index of 'n' in listB.</p>

<p>I need to apply this formula to all the elements in both list. So that when the loop runs the first time it needs to do this:</p>

<pre><code>51/pi*((1*0.1)+1)**2 - pi *(1*0.1)**2
</code></pre>

<p>For the second this, it needs to do this:</p>

<pre><code>988/pi*((2*0.1)+1)**2 - pi*(2*0.1)**2
</code></pre>

<p>And it repeats until the end of both lists.</p>

<p>I know I have to use a 'for' loop, but my problem is that I don't know how to get the elements from the second list. I'm trying to do this:</p>

<pre><code>for n in listA:
   n/pi*((......))
</code></pre>

<p>Inside thhe brackets it should be the elements from listB but I don't know how to get them, and they need to have the same index as the element from listA.
The output should be a third list with the result of each formula applied.</p>

<p>I have tried to explained myself the best way possible, but if you don't understand my question feel free to ask any question. </p>

<p>Thanks in advance.</p>