Wednesday, 4 September 2013

updating list values of dictionary with the values of another dictionary and printing the result as the values of first dictionary in...

updating list values of dictionary with the values of another dictionary
and printing the result as the values of first dictionary in...

I have two dictionaries
first one is legenddict as legenddict = [ 'Standard_Animator: blue,
3f7fff, 00bfff, 3fffbf, green, bfff3f, ffbf00, ff7f00, red' ,
'Extended_Animator: LightGray,
blue,3f7fff,00bfff,3fffbf,green,bfff3f,ffbf00,ff7f00,red, Magenta' ]
and second one is colordict
colordict = ['blue' : 'ff00ff', 'red' = '808080',
'lightgray':'d3d3d3','magneta':'00ff00']
what I expect is I wanna print all values of legenddict to be compared
with the keys of colordict it should produce output as colors with all
hexadecimal digits

No comments:

Post a Comment