
xxxxxxxxxx
#Smoothies - JSON Data Set - www.101computing.net/smoothies-json-data-set
import json
print("Smoothies Recipes:")
print("--------------------")
print("These are all the ingredients used in our selection of 20 refreshing smoothies:")
print("Almond Butter, Almond Milk, Apple Juice, Avocado, Banana, Blueberries, Carrot, Chia Seeds, Cinnamon, Cocoa Powder, Coconut Milk, Coconut Water, Cucumber, Fresh Mint, Ginger, Greek Yogurt, Green Apple, Honey, Honeydew Melon, Kale, Kiwi, Lemon Juice, Lime Juice, Mango, Matcha Powder, Mixed Berries, Nutmeg, Oats, Orange Juice, Papaya, Peanut Butter, Pineapple, Protein Powder, Pumpkin Puree, Raspberries, Spinach, Strawberries, Turmeric.")
print("--------------------")
print("\n")
# load JSON data from file
file = open('smoothies.json','r')
data = json.load(file)
file.close()
# Perform a linear search using the JSON data
smoothies = data["Smoothies"]
for smoothie in smoothies:
if "Mango" in smoothie["Ingredients"]:
print(smoothie["Name"])
print(smoothie["Recipe"])
print("--------------------")
task_alt