From 7352a5d90e13f31620dfd141457b97a4bb01fe30 Mon Sep 17 00:00:00 2001 From: ASPP Student Date: Mon, 26 Aug 2024 18:15:56 +0300 Subject: [PATCH] brewed supurb python expert potion --- src/brewing/brew_potions.py | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/src/brewing/brew_potions.py b/src/brewing/brew_potions.py index b616a01..638e888 100644 --- a/src/brewing/brew_potions.py +++ b/src/brewing/brew_potions.py @@ -2,6 +2,7 @@ from brewing import potion_class from brewing import containers from brewing import cooking from brewing import inspection +from brewing import ingredients def make_example_potion(student_name="ASPP student"): """Make and return an example potion.""" @@ -13,15 +14,23 @@ def make_example_potion(student_name="ASPP student"): print(f"You successfully ran make_example_potion, {student_name}, well done :).") return my_potion +"""1. Set up a pewter cauldron and light a fire underneath it +2. Add fish eyes, unicorn hair and tea leaves +3. Let simmer for 2 hours +4. Have snoope inspect the potion (use target_potion='python_expert').""" def make_python_expert_potion(student_name): + my_potion = potion_class.Potion(student_name=student_name) + my_potion.setup(container = containers.PEWTER_CAULDRON, heat_source = cooking.FIRE) + my_potion.add_ingredients(ingredients = [ingredients.FISH_EYES, ingredients.UNICORN_HAIR, ingredients.TEA_LEAVES]) + cooking.simmer(my_potion, duration = 2) print("I am a Python Expert") # todo: write this function! - return + return my_potion if __name__ == "__main__": my_name = 'ASPP student' - my_potion = make_example_potion(student_name=my_name) + my_potion = make_python_expert_potion(student_name=my_name) # Let Snoope inspect the potion - inspection.inspection_by_snoope(potion=my_potion, target_potion='example_potion') + inspection.inspection_by_snoope(potion=my_potion, target_potion='python_expert') -- 2.39.5