Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 29 | 30 | 31 |
Tags
- lambda
- sum
- 파이썬
- LOWER
- FOR
- index
- 위코드
- or
- slice
- len
- If
- STR
- SQL
- DART
- WECODE
- range
- and
- Algorithm
- split
- decorator
- map
- count
- list
- MAX
- enumerate
- Sorted
- iNT
- join
- Python
- js
Archives
- Today
- Total
코드로 우주평화
0114. Are arrow functions odd? 본문
Time to test your basic knowledge in functions! Return the odds from a list:
[1, 2, 3, 4, 5] --> [1, 3, 5]
[2, 4, 6] --> []
Solution:
odds = lambda x: [i for i in x if i & 1]
'나는 이렇게 학습한다 > Algorithm & SQL' 카테고리의 다른 글
0116. OOP: Object Oriented Piracy (0) | 2023.01.16 |
---|---|
0115. Name on billboard (0) | 2023.01.15 |
0113. Build a square (0) | 2023.01.13 |
0112. Tip Calculator (0) | 2023.01.13 |
0111. You Can't Code Under Pressure #1 (0) | 2023.01.12 |