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
- and
- If
- WECODE
- decorator
- DART
- slice
- Sorted
- len
- sum
- join
- enumerate
- list
- lambda
- count
- 파이썬
- Python
- SQL
- MAX
- index
- LOWER
- js
- Algorithm
- 위코드
- range
- or
- FOR
- split
- STR
- iNT
- map
Archives
- Today
- Total
코드로 우주평화
0129. Super Duper Easy 본문
Make a function that returns the value multiplied by 50 and increased by 6. If the value entered is a string it should return "Error".
Solution:
problem = lambda x: "Error" if isinstance(x, str) else x * 50 + 6
'나는 이렇게 학습한다 > Algorithm & SQL' 카테고리의 다른 글
0131. You only need one - Beginner (0) | 2023.02.01 |
---|---|
0130. Grasshopper - Personalized Message (0) | 2023.01.31 |
0128. Gauß needs help! (Sums of a lot of numbers). (0) | 2023.01.28 |
0127. Remove the time (0) | 2023.01.28 |
0126. Over The Road (0) | 2023.01.27 |