marks = []
for i in range(1, 11):
marks.append(float(input('Судья ' + str(i) + ': ')))
min_mark = marks[0]
max_mark = marks[0]
for mark in marks:
if mark < min_mark:
min_mark = mark
if mark > max_mark:
max_mark = mark
print('Оценка:', (min_mark + max_mark) / 2)
marks = []
for i in range(1, 11):
marks.append(float(input('Судья ' + str(i) + ': ')))
min_mark = marks[0]
max_mark = marks[0]
for mark in marks:
if mark < min_mark:
min_mark = mark
if mark > max_mark:
max_mark = mark
print('Оценка:', (min_mark + max_mark) / 2)