結果 : nested-if condition syntax in python