'How to find COVARIANCE for two lists with floating point numbers?

I need to find covariance for data in two lists of same length. Both contain floating point numbers.

I cannot use for loop, because indices only work with integers and slices, that is the error I am getting with for i in zip(list, list) ..



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source