# Chocolate Cake Recipe
def chocolate_cake_recipe():
ingredients = {
"all-purpose flour": "2 cups",
"granulated sugar": "2 cups",
"cocoa powder": "3/4 cup",
"baking powder": "1 3/4 tsp",
"baking soda": "1 1/2 tsp",
"salt": "1 tsp",
"eggs": "2",
"milk": "1 cup",
"vegetable oil": "1/2 cup",
"vanilla extract": "2 tsp",
"boiling water": "1 cup",
"chocolate frosting": "1 container"
}
# Method
method = [
"Preheat oven to 350°F (175°C).",
"Grease and flour two 9-inch round cake pans.",
"In a large bowl, stir together the dry ingredients.",
"Add the eggs, milk, oil, and vanilla, and mix for 2 minutes on medium speed.",
"Stir in the boiling water last. Batter will be thin.",
"Pour the batter evenly into the prepared pans.",
"Bake for 30 to 35 minutes, or until a toothpick inserted into the center comes out clean.",
"Cool the cakes in the pans for 10 minutes, then remove to wire racks to cool completely.",
"Frost with chocolate frosting and serve."
]
return ingredients, method
# Example usage:
ingredients, method = chocolate_cake_recipe()
print("Chocolate Cake Recipe")
print("Ingredients:")
for ingredient, amount in ingredients.items():
print(f"- {amount} of {ingredient}")
print("\nMethod:")
for step in method:
print(step)