Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

get keys from dictionary python

dict={1:2,3:4}
list_of_keys=list(dict)
# output
# [1, 3]
 
PREVIOUS NEXT
Tagged: #keys #dictionary #python
ADD COMMENT
Topic
Name
5+7 =