take values from dictionary python code example
Example 1: python get dict values as list
food_list=list(data.values())
print(food_list)
Example 2: python dictionary get default
dictionary = {"message": "Hello, World!"}
data = dictionary.get("message", "")
print(data) # Hello, World!