I have the following code snippet where am assigning values to dictionary..currently the dictionary values are getting printed as normal values..i want to them to convert to a list,how do i change the "database[data]=value" line to achieve this?
database={} ....... database[data]=value //assigning value to a dictionary print database ............... Expected output:- internal_dep = {'313115': ['313113'],'213114': ['213103'] } Current output:- internal_dep = {'313115': '313113','213114': '213103' } Thanks