結果 : how to write nested if else in python