파이썬에서 튜플 정렬하는 방법 > v = [(3, 4), (2, 2), (3, 3), (1, 2), (1, -1)]> print(v) [(3, 4), (2, 2), (3, 3), (1, 2), (1, -1)] 1. 첫 번째 원소로 오름차순 정렬하기 > v = [(3, 4), (2, 2), (3, 3), (1, 2), (1, -1)] > v.sort(key = lambda x : x[0])> print(v) [(1, 2), (1, -1), (2, 2), (3, 4), (3, 3)] 2. 첫 번째 원소로 내림차순 정렬하기 > v = [(3,4),(2,2),(3,3),(1,2),(1,-1)] > v.sort(key=lambda x:-x[0])> print(v) [(3, 4), (3, 3), (2, 2), (1..