From 40a8560bd9cbf54cc485f0969f6235c412085cfa Mon Sep 17 00:00:00 2001 From: ASPP Student Date: Wed, 30 Aug 2023 12:50:50 +0300 Subject: [PATCH] Create expert potion --- brewing/brew_potions.py | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/brewing/brew_potions.py b/brewing/brew_potions.py index d6d52f7..ac0d77b 100644 --- a/brewing/brew_potions.py +++ b/brewing/brew_potions.py @@ -1,7 +1,7 @@ -import potion_class -import containers -import cooking -import inspection +from brewing import potion_class +from brewing import containers +from brewing import cooking +from brewing import inspection def make_example_potion(student_name="ASPP student"): @@ -16,12 +16,14 @@ def make_example_potion(student_name="ASPP student"): def make_python_expert_potion(student_name): print("I am a Python Expert") - # todo: write this function! - return + python_expert = potion_class.Potion(student_name=student_name) + python_expert.setup(container=containers.pewter_cauldron, heat_source=cooking.fire) + python_expert.add_ingredients(['fish_eyes', 'unicorn_hair', 'tea_leaves']) + cooking.simmer(python_expert, duration=2) + return python_expert if __name__ == "__main__": my_name = 'ASPP student' - my_potion = make_example_potion(student_name=my_name) - # Let Snape inspect the potion - inspection.inspection_by_Snape(potion=my_potion, target_potion='example_potion') + python_expert = make_python_expert_potion(student_name=my_name) + inspection.inspection_by_Snape(potion=python_expert, target_potion='python_expert')