나는 이렇게 학습한다/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


반응형