Answers for "converting string key to int py"

0

converting string key to int py

d = {'1':'145' , '2':'254' , '3':'43'}
d = {int(k):v for k,v in d.items()}
Posted by: Guest on September-16-2021

Python Answers by Framework

Browse Popular Code Answers by Language