Report question

Question: How to raise error if duplicates keys in dictionary