[파이썬 개념] 파이썬 리스트 정렬 내장함수, 메소드 - sort(), reverse=True 1 2 3 4 5 6 #오름차순 list = [6,4,-14,2,84,-5,16,35] list.sort() print(list) #내림차순 list.sort(reverse=True) print(list) cs [-14, -5, 2, 4, 6, 16, 35, 84] [84, 35, 16, 6, 4, 2, -5, -14] 출처: 예제 중심 파이썬 입문 • programming language/python 2022.07.12