코드로 우주평화

0129. Super Duper Easy 본문

나는 이렇게 학습한다/Algorithm & SQL

0129. Super Duper Easy

daco2020 2023. 1. 29. 13:41

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