結果 : function to convert hex to decimal in python