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