Need help with creating creating list of cov matrix

Hi guys,

I tried to iterate from 1 to 100 sides of dices and calculate the covariance matrix as well as the mean for sum of rolling dice twice. However, when I print all the covariance matrix out, it seems like I only get identical four numbers for each dice. I wonder what is wrong with this piece of code?
THank you very much.

Sorry, I don’t really understand what your code is trying to do.

Can you explain in more detail?