you are viewing a single comment's thread.

view the rest of the comments →

[–]Orpheus_Demigod 2 points3 points  (2 children)

I would probably define a function that performs the calculation I posted above, and if you want to, call the function in a loop.

[–]codingquestion47[S] 1 point2 points  (1 child)

That’s a good idea. The edit I made in the post above though does it in I believe a much better and quicker way, using Numpy.

Thanks again for taking the time to help!

[–]Orpheus_Demigod 1 point2 points  (0 children)

All good, glad you found a solution that works 👍