I am new to Python. I am learning dictionary . I want to insert a new value to an existing dictionary. The existing dictionary is d={5:'acb',6:'bhg',7:'cssd'}. I want to add a new value 'xsd' at key no 5, but i am not able to do so. I have tried the below from my side. Please help.
d={5:'acb',6:'bhg',7:'cssd'}
d[5].append('xsd')
d
i want output as ; d={5:['acb','xsd'],6:'bhg',7:'cssd'}
d[5] = d[5] + 'xsd'