python list of dictionary values to list code example
Example 1: python get dict values as list
food_list=list(data.values())
print(food_list)
Example 2: python list of dictionaries to list
[d['value'] for d in l if 'value' in d]
food_list=list(data.values())
print(food_list)
[d['value'] for d in l if 'value' in d]