get dictionary value from key list code example
Example 1: python get dict values as list
food_list=list(data.values())
print(food_list)
Example 2: python get dictionary keys as list
# To get all the keys of a dictionary as a list, see below
newdict = {1:0, 2:0, 3:0}
list(newdict)
# Output:
# [1, 2, 3]
Example 3: dict get list of values
list(d.values())