Probably you are after for this?
d = {"A" : 123.02, "B": 12.3} for key in d.keys(): d[key] = str(d[key])
such that print(d) shows
print(d)
{'A': '123.02', 'B': '12.3'}