expert potion passed
This commit is contained in:
parent
8b893a0008
commit
38bbf88229
|
@ -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."""
|
||||
|
@ -15,13 +16,18 @@ def make_example_potion(student_name="ASPP student"):
|
|||
|
||||
|
||||
def make_python_expert_potion(student_name):
|
||||
my_potion = potion_class.Potion(student_name=student_name)
|
||||
my_potion.ingredients = [ingredients.FISH_EYES, ingredients.UNICORN_HAIR, ingredients.TEA_LEAVES]
|
||||
my_potion.setup(container=containers.PEWTER_CAULDRON, heat_source=cooking.FIRE)
|
||||
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)
|
||||
# ex_potion = make_example_potion(student_name=my_name)
|
||||
expert_potion = make_python_expert_potion(my_name)
|
||||
# Let Snoope inspect the potion
|
||||
inspection.inspection_by_snoope(potion=my_potion, target_potion='example_potion')
|
||||
inspection.inspection_by_snoope(potion=expert_potion, target_potion='python_expert')
|
||||
|
|
Loading…
Reference in a new issue