Why can I not directly modify the list value in the following dict?
price_to_names = {'$': [], '$$': []}
price_to_names['$'] = price_to_names['$'].append('hello')
The following code changes the dict to
{'$': None, '$$': []}
I would like price_to_names to become
{'$': ['hello'], '$$': []}