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
- FOR
- If
- decorator
- Python
- or
- SQL
- enumerate
- list
- Sorted
- STR
- range
- join
- and
- js
- WECODE
- count
- lambda
- DART
- split
- index
- LOWER
- iNT
- MAX
- 위코드
- map
- slice
- sum
- Algorithm
- 파이썬
- len
Archives
- Today
- Total
코드로 우주평화
0131. You only need one - Beginner 본문
You will be given an array a and a value x. All you need to do is check whether the provided array contains the value.
Array can contain numbers or strings. X can be either.
Return true if the array contains the value, false if not.
Solution:
check: bool = lambda x, y : y in x
'나는 이렇게 학습한다 > Algorithm & SQL' 카테고리의 다른 글
0202. Beginner Series #1 School Paperwork (0) | 2023.02.02 |
---|---|
0201. Who ate the cookie? (0) | 2023.02.01 |
0130. Grasshopper - Personalized Message (0) | 2023.01.31 |
0129. Super Duper Easy (0) | 2023.01.29 |
0128. Gauß needs help! (Sums of a lot of numbers). (0) | 2023.01.28 |