Ask Your Question

Revision history [back]

I am not sure about your exact question, does the following answer it ?

sage: arithmetic_mean(*dict(x).values())
1141/4
sage: arithmetic_mean(*dict(y[0]).values())
1141/4

I am not sure about your exact question, does the following answer it ?

sage: arithmetic_mean(*dict(x).values())
1141/4
sage: arithmetic_mean(*dict(y[0]).values())
1141/4

EDIT Here is a version using zip (though it is not very natural):

sage: arithmetic_mean(*zip(*x)[1])
1141/4
sage: arithmetic_mean(*zip(*y[0])[1])
1141/4