結果 : how to check condition in dictionary python