Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

get all values of a dict python

#!/usr/bin/python3
a = {"a":"b","c":"d"}
a_values = list(a.values())
print(a_values)
# output: ["b", "d"]
 
PREVIOUS NEXT
Tagged: #values #dict #python
ADD COMMENT
Topic
Name
8+7 =