Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

converting string key to int py

d = {'1':'145' , '2':'254' , '3':'43'}
d = {int(k):v for k,v in d.items()}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #converting #string #key #int #py
ADD COMMENT
Topic
Name
1+9 =