Coding Test / Python / lambda
Updated:
์ฝํ
์ค๋น๋ฅผ ํ์ฐธ์ ์ฌ์๋ค๊ฐ ๋ค์ ์์ํ๋ ค๋ ์์ฃผ ๊ธฐ๋ณธ์ ์ธ ๊ฒ๋ค์ ์ ๋ถ ์์ด๋ฒ๋ ธ๋ค ..
์ ์ ๋ฆฌํด์ ๋๊ณ ๋๊ณ ๋ด์ผ๊ฒ ๋ค .
โช๏ธ ํน์ ์ธ๋ฑ์ค ๊ฐ์ ๊ธฐ์ค์ผ๋ก ๋ฌธ์์ด ๋ฆฌ์คํธ ์ ๋ ฌํ๊ธฐ
answer = sorted(strings, key = lambda x: x[n])
Leave a comment