initialize dictionary in python code example
Example 1: python dict initialize
a = {'import': 'trade', 1: 7.8}
# OR
a = dict({'import': 'trade', 1: 7.8})
Example 2: instantiate a dictionary python
new_dict = {}
a = {'import': 'trade', 1: 7.8}
# OR
a = dict({'import': 'trade', 1: 7.8})
new_dict = {}