get list of keys and values from dict in python code example
Example 1: python list keys from dictionary
# Basic syntax:
list_of_keys = list(dictionary.keys())
Example 2: python get dict values as list
food_list=list(data.values())
print(food_list)