From 73475c95d563316aedd5ea964ff09f08c4b80486 Mon Sep 17 00:00:00 2001 From: ASPP Student Date: Mon, 26 Aug 2024 16:59:54 +0300 Subject: [PATCH] import dependecies from brewing --- src/make_potion.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/make_potion.py diff --git a/src/make_potion.py b/src/make_potion.py new file mode 100644 index 0000000..8369ce6 --- /dev/null +++ b/src/make_potion.py @@ -0,0 +1,18 @@ + +from brewing import potion_class +from brewing import cooking +from brewing import containers + + +def make_example_potion(student_name="ASPP student"): + my_potion = potion_class.Potion(student_name=student_name) + # Set up your old kettle and light an eternal flame underneath it. + my_potion.setup(container=containers.OLD_KETTLE, heat_source="eternal_flame") + # Simmer for 5 hours. + cooking.simmer(my_potion, duration=5) + print(f"You successfully ran make_example_potion, {student_name}, well done :).") + return my_potion + + +my_name = 'ASPP student' +my_potion = make_example_potion(student_name=my_name) \ No newline at end of file