how to create empty dictionary in python and assign values code example Example: python initialize empty dictionary d = dict() d = {}