結果 : check if all values in hashmap are equal python