Modifying Dictionary In Python Geeksforgeeks