Programmers 최댓값과 최솟값

Solution

def solution(s):
    answer = sorted(list(map(int, s.split(' '))))
    return str(answer[0]) + " " + str(answer[-1])