converting string key to int py

Solutions on MaxInterview for converting string key to int py by the best coders in the world

showing results for - "converting string key to int py"
Erica
25 Mar 2018
1d = {'1':'145' , '2':'254' , '3':'43'}
2d = {int(k):v for k,v in d.items()}
similar questions
queries leading to this page
converting string key to int py