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