list keys json python

Solutions on MaxInterview for list keys json python by the best coders in the world

showing results for - "list keys json python"
Lorenzo
20 Jul 2019
1>>> dct = {
2...     "1": "a", 
3...     "3": "b", 
4...     "8": {
5...         "12": "c", 
6...         "25": "d"
7...     }
8... }
9>>> 
10>>> dct.keys()
11['1', '8', '3']
12>>> for key in dct.keys(): print key
13...
141
158
163
17>>>
18