반응형
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 |