結果 : nested condition in python