Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Dictionary Get All Keys

hh = {"a":3, "b":4, "c":5}

print(hh.keys())
# dict_keys(['a', 'b', 'c'])

print(list(hh.keys()))
# ['a', 'b', 'c']
Source by xahlee.info #
 
PREVIOUS NEXT
Tagged: #Dictionary #Get #All #Keys
ADD COMMENT
Topic
Name
8+7 =