🐍 Python 🐍

🍁 Happy November 🍡

View the Project on GitHub riverdaleGithub/intro_python_23

πŸ§™β€β™‚οΈ Python Lab: The Potion Mixer! πŸ§ͺ

Objective 🎯

Learn to create functions and use if/else statements in Python to simulate the magical process of mixing potions with various effects.

Story πŸ“–

As an apprentice in a mystical apothecary, your task is to mix potions with magical ingredients. Each ingredient affects the potion differently, and you must use your Python skills to achieve the desired magical results.

Lab Tasks πŸ“

Task 1: The Basic Potion 🧴

Create a function named mix_potion that takes an ingredient parameter. Depending on the ingredient, the potion will change color. You’ll use if and elif statements to check the ingredient and print the potion’s color.

Task 2: Potion Effects 🌟

Add special effects to the potions. Depending on the ingredients, the potion can have additional properties like sparkling, glowing, or even exploding.

Reflection πŸ€”

After completing the tasks, create a video where you reflect on the following:

  1. How did the use of if/else statements help you control the flow of your potion-making function?
  2. What challenges did you encounter when checking for multiple conditions, and how did you overcome them?
  3. In what ways can you apply the function creation and decision-making skills you’ve practiced here to other programming problems?