positions in a list. python
<p>Lets say I have this list:</p>

<pre><code>   lst =  [[0], [0, 0], [0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0, 0]...]
</code></pre>

<p>how can I add a certain number to each cell according to its position in the lists
for exapmle:
I want to add a formula to each cell by multipying 3 with the position on the list*position in the nested list
so lets say the second cell on the third list will be </p>

<pre><code>                            3*3*2
(random number)*(the third nested list)*(second spot on that list)
</code></pre>

<p>so eventually the list will look like that (only for the number 3)</p>

<pre><code>   lst =  [[3], [6, 12], [9, 18, 27], [12, 24, 36, 48], [15, 30, 45, 60, 75]...]
</code></pre>

<p>anyway this is just an example and Im asking generally about how to apply a certain formula considaring the position of nested list and inner cells in a list.
Its kind of difficult to explain so I hope it came out clear enough.
thank you.</p>
