結果 : if statement inside dictionary python