結果 : check for duplicates python