access list in dictionary python code example
Example 1: python get dict values as list
food_list=list(data.values())
print(food_list)
Example 2: python dict access
my_dict = {'name':'Jack', 'age': 26}
my_dict['name']
food_list=list(data.values())
print(food_list)
my_dict = {'name':'Jack', 'age': 26}
my_dict['name']