0% found this document useful (0 votes)
20 views5 pages

Random Recipe

This document provides a Python script for a 'Random Recipe Generator' that suggests recipes and their ingredients. Users can run the script in a Python environment and interact with it based on prompts. The document also includes customization ideas for enhancing the script's functionality.

Uploaded by

Aayush Karn
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
20 views5 pages

Random Recipe

This document provides a Python script for a 'Random Recipe Generator' that suggests recipes and their ingredients. Users can run the script in a Python environment and interact with it based on prompts. The document also includes customization ideas for enhancing the script's functionality.

Uploaded by

Aayush Karn
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

Random Recipe Generator

This document contains a Python script for 'Random Recipe Generator'.


It includes an overview, usage instructions, and the full source code.

### Overview:
This script implements 'Random Recipe Generator', which helps users with random recipe
generator.

### How to Use:


1. Run the script in a Python environment.
2. Follow the on-screen prompts to interact with the program.
3. The script performs its function based on user input.
4. Modify the script as needed to add more features.
import random

recipes = {
"Pasta": ["Pasta", "Tomato Sauce", "Cheese"],
"Omelette": ["Eggs", "Milk", "Salt"],
"Smoothie": ["Banana", "Milk", "Honey"],
"Salad": ["Lettuce", "Tomato", "Cucumber", "Dressing"]
}

def suggest_recipe():
recipe, ingredients = random.choice(list(recipes.items()))
print(f"Today's recipe: {recipe}")
print("Ingredients: " + ", ".join(ingredients))

if __name__ == "__main__":
suggest_recipe()
Additional Notes / Customization Ideas:
--------------------------------------------------
Additional Notes / Customization Ideas:
--------------------------------------------------
Additional Notes / Customization Ideas:
--------------------------------------------------

You might also like