結果 : nested if else in lambda function python