結果 : nested if in lambda python