import random
dic = {'s01': 3.1, 's02': 2.8, 's03': 2.7, 's04': 3.0,'s05': 2.8, 's06': 2.6, 's07': 2.5, 's08': 2.0}
nums_list = []
result_list = []
rows = 8
columns = 10
for i in range(rows):
nums_list.append([])
result_list.append([])
for j in range(columns):
num = random.randint(0, 10)
nums_list.append(num)
nums_list[i].sort()
del nums_list[i][0]
del nums_list[i][-1]
aver = sum(nums_list[i]) / len(nums_list[i])
scor = round(aver * dic['s0' + str(i + 1)], 3)
result_list[i].append('s0' + str(i + 1))
result_list[i].append(aver)
result_list[i].append(dic['s0' + str(i + 1)])
result_list[i].append(scor)
print(result_list[i])