본문 바로가기
나는 이렇게 학습한다/Algorithm & SQL

0129. Super Duper Easy

by daco2020 2023. 1. 29.

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