結果 : how to compare three values in python