korean, english, mathematics, science = map(int, input().split())
def get_min_max_score(*args):
return min(args),max(args)
def get_average(**kwargs):
return float(sum(kwargs.value())/len(kwargs))
min_score, max_score = get_min_max_score(korean, english, mathematics, science)
average_score = get_average(korean=korean, english=english, mathematics=mathematics, science=science)
print('min: {0:.2f}, max: {1:.2f}, average: {2:.2f}'.format(min_score, max_score, average_score))
min_score, max_score = get_min_max_score(english, science)
average_score = get_average(english=english, science=science)
print('min: {0:.2f}, max: {1:.2f}, average: {2:.2f}'.format(min_score, max_score, average_score))
答案 0 :(得分:0)
您要将value
函数中的get_average
替换为values