d1 = { 'a':12 , 'b':10 , 'c':2 } d2 = { 'a':0 , 'c':2 , 'b':5} d3 = d2 / d1  d3 = { 'a':0 , 'b':0.5 , 'c':1 }

Read more of this post