結果 : if statement with 3 conditions python