initialize an empty dictionary python in constructor code example Example 1: python initialize empty dictionary d = dict() d = {} Example 2: instantiate a dictionary python new_dict = {}