프로그래머스 Lv.2| Python - 최댓값과 최솟값

pg

풀이

def solution(s):
    s_list = list(map(int, s.split(" ")))
    
    max_num = max(s_list)
    min_num = min(s_list)

    return str(min_num) + " " + str(max_num)

comments powered by Disqus