結果 : python assign boolean based on condition