Recent Posts
Recent Comments
ღ yuni_world ღ
[Python] lambda함수 본문
📕lambda 함수
- lambda(매개변수 : 표현식)
📖예시
(lambda x,y: x + y)(20, 30)
# 50
list(map(lambda x: x ** 2, range(5)))
# [0, 1, 4, 9, 16]
'Python' 카테고리의 다른 글
| [Python] print() 옵션 sep, end, Escape Code(이스케이프 코드) (0) | 2023.07.03 |
|---|---|
| [Python] dictionary get() 메소드 (0) | 2023.03.15 |
| [Python] collections 모듈 Counter (0) | 2023.03.15 |
| [Python] 아스키코드 변환함수 ord(), chr() (0) | 2023.01.29 |
| [Python] map 함수 (0) | 2023.01.28 |