Notice
Recent Posts
Recent Comments
ยซ   2025/02   ยป
์ผ ์›” ํ™” ์ˆ˜ ๋ชฉ ๊ธˆ ํ† 
1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28
Tags more
Archives
Today
Total
๊ด€๋ฆฌ ๋ฉ”๋‰ด

๐ŸŒฒ์ž๋ผ๋‚˜๋Š”์ฒญ๋…„

[ํŒŒ์ด์ฌ์„ ํŒŒ์ด์ฌ๋‹ต๊ฒŒ]part1. Python ๊ฟ€ํŒ ๋ณธ๋ฌธ

์•Œ๊ณ ๋ฆฌ์ฆ˜ ๋ฌธ์ œํ’€์ด

[ํŒŒ์ด์ฌ์„ ํŒŒ์ด์ฌ๋‹ต๊ฒŒ]part1. Python ๊ฟ€ํŒ

JihyunLee 2021. 1. 31. 13:20
๋ฐ˜์‘ํ˜•
1
2
3
4
5
def solution(mylist):
    answer = []
    for l in mylist:
        answer.append(len(l))
    return answer
cs

1
2
def solution(mylist):
    return list(map(len, mylist))
cs

๋ฐ‘์—์žˆ๋Š” ์ฝ”๋“œ์ฒ˜๋Ÿผ ์งœ์•ผํ•œ๋‹ค

๋ฐ˜์‘ํ˜•