데린이 고인물되기

checkio - Home - 13.Absolute Sorting 본문

checkio/HOME

checkio - Home - 13.Absolute Sorting

데린이 성장 중 2022. 7. 22. 00:56
반응형

<리스트 내 모든 요소 타입 바꾸기>

- map( 바꿀 타입, 리스트) : list(map(타입, 리스트))

<문제에서 제공한 힌트 - >

https://wiki.python.org/moin/HowTo/Sorting/#Key_Functions

 

HowTo/Sorting - Python Wiki

Sorting Mini-HOW TO Original version by Andrew Dalke with a major update by Raymond Hettinger Python lists have a built-in sort() method that modifies the list in-place and a sorted() built-in function that builds a new sorted list from an iterable. There

wiki.python.org

- sorted와 sort함수에 key 값 넣기

https://ooyoung.tistory.com/59

 

파이썬 정렬 함수 sort, sorted _ key = lambda, function / reverse= 파라미터 이용 방법 (Python)

파이썬 정렬 함수 - 순서 - 1. sort 2. sorted 3. reverse 사용 예시 4. key function, lambda 사용방법 1. sort 원본을 변형시켜 정렬한다. '변수. sort( )' 형태로 사용. 정렬 기준은 문자열은 알파벳, 가나다순..

ooyoung.tistory.com

생각보다 쉬운 문제인데 엄청 오래 고민한 문제....

반응형

'checkio > HOME' 카테고리의 다른 글

checkio - Home - 16.Morse Decoder  (0) 2022.07.22
checkio - Home - 14. Between Markers  (0) 2022.07.22
checkio - Home - 12. Sum Numbers  (0) 2022.07.21
checkio - Home - 11.Sum by Type  (0) 2022.07.21
checkio - Home - 10. Shorter Set  (0) 2022.07.21