adds brewing files

This commit is contained in:
Pamela Hathway 2024-07-17 23:32:12 +02:00
parent d3c22673c0
commit c622d3ba31
6 changed files with 236 additions and 0 deletions

View file

@ -0,0 +1,26 @@
from src.brewing import potion_class
from src.brewing import containers
from src.brewing import cooking
from src.brewing import inspection
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)
# 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
def make_python_expert_potion(student_name):
print("I am a Python Expert")
# todo: write this function!
return
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')