capitalises constants
This commit is contained in:
parent
0a5162e439
commit
842d09bb55
|
@ -6,7 +6,7 @@ from brewing import inspection
|
||||||
def make_example_potion(student_name="ASPP student"):
|
def make_example_potion(student_name="ASPP student"):
|
||||||
my_potion = potion_class.Potion(student_name=student_name)
|
my_potion = potion_class.Potion(student_name=student_name)
|
||||||
# Set up your old kettle and light an eternal flame underneath it.
|
# Set up your old kettle and light an eternal flame underneath it.
|
||||||
my_potion.setup(container=containers.old_kettle)
|
my_potion.setup(container=containers.OLD_KETTLE)
|
||||||
# Simmer for 5 hours.
|
# Simmer for 5 hours.
|
||||||
cooking.simmer(my_potion, duration=5)
|
cooking.simmer(my_potion, duration=5)
|
||||||
print(f"You successfully ran make_example_potion, {student_name}, well done :).")
|
print(f"You successfully ran make_example_potion, {student_name}, well done :).")
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# containers
|
# containers
|
||||||
pewter_cauldron = 'pewter_cauldron'
|
PEWTER_CAULDRON = 'pewter_cauldron'
|
||||||
copper_cauldron = 'copper_cauldron'
|
COPPER_CAULDRON = 'copper_cauldron'
|
||||||
martini_glass = 'martini_glass'
|
MARTINI_GLASS = 'martini_glass'
|
||||||
old_kettle = 'old_kettle'
|
OLD_KETTLE = 'old_kettle'
|
||||||
raki_bottle = 'raki_bottle'
|
RAKI_BOTTLE = 'raki_bottle'
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# heat sources
|
# heat sources
|
||||||
fire = 'fire'
|
FIRE = 'fire'
|
||||||
eternal_flame = 'eternal_flame'
|
ETERNAL_FLAME = 'eternal_flame'
|
||||||
breathe_on_cauldron = 'breathe_on_cauldron'
|
BREATHE_ON_CAULDRON = 'breathe_on_cauldron'
|
||||||
|
|
||||||
|
|
||||||
def stir(potion, direction):
|
def stir(potion, direction):
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
# ingredients
|
# ingredients
|
||||||
snake_skin = 'snake_skin'
|
SNAKE_SKIN = 'snake_skin'
|
||||||
fish_eyes = 'fish_eyes'
|
FISH_EYES = 'fish_eyes'
|
||||||
unicorn_hair = 'unicorn_hair'
|
UNICORN_HAIR = 'unicorn_hair'
|
||||||
tea_leaves = 'tea_leaves'
|
TEA_LEAVES = 'tea_leaves'
|
||||||
|
|
Loading…
Reference in a new issue