전.py
[python] 프로그래머스 튜플
https://programmers.co.kr/learn/courses/30/lessons/64065 코딩테스트 연습 - 튜플 "{{2},{2,1},{2,1,3},{2,1,3,4}}" [2, 1, 3, 4] "{{1,2,3},{2,1},{1,2,4,3},{2}}" [2, 1, 3, 4] "{{4,2,3},{3},{2,3,4,1},{2,3}}" [3, 2, 4, 1] programmers.co.kr def solution(s): s = s.replace('{', '.').replace('}', '.') s = s.split('.') data = [] for i in s: if i != '' and i != ',': data.append(list(map(int, i.split(',')))) data.sort..
2022. 3. 3. 16:08