python initialize empty dict code example Example 1: python initialize empty dictionary d = dict() d = {} Example 2: initialize empty dictionary python new_dict = {}