Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python dictionary get keys and values

d = {"a":0, "b":1, "c":2}
keys, values = [], []
for k, v in d.items():
    keys.append(k)
    values.append(v)
    
print(keys,values)
 
PREVIOUS NEXT
Tagged: #python #dictionary #keys #values
ADD COMMENT
Topic
Name
7+4 =