Mean element 1 : 1.5 ; Mean element 3 : 10.5;
Mean element 2 : 4.1 ; Mean of means 5.366666
# Code
tup1 = ((1, 2), (3, 4.15, 5.15), ( 7, 8, 12, 15))
c = 0
# sum() function gives sum of a sequence
# mean = sum(tuple)/len(tuple)
for i in range(len(tup1)):
print(‘Mean element’, i+1, ‘:’, sum(tup1[i])/len(tup1[i]))
c += sum(tup1[i])/len(tup1[i])
print(‘Mean of means ‘, c/len(tup1))