python define empty dictionary with keys code example Example 1: empty dictionary python dict_empty = {} Example 2: initialize empty dictionary python new_dict = {}