sorted()

지애·2022년 4월 9일
0

Python

목록 보기
7/17

sorted()

  • 데이터를 정렬하는 python 내장함수
numbers = [4, 5, 1, 3, 2]
sorted_numbers = sorted(numbers)
print(sorted_numbers)
#[1, 2, 3, 4, 5]
profile
차근차근

0개의 댓글