how to define an empty dict in python code example Example 1: empty dictionary python dict_empty = {} Example 2: initialize empty dictionary python new_dict = {}