capitalises constants

This commit is contained in:
Pamela Hathway 2024-08-21 23:15:11 +02:00
parent 0a5162e439
commit 842d09bb55
4 changed files with 13 additions and 13 deletions

View file

@ -6,7 +6,7 @@ from 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)
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 :).")

View file

@ -1,6 +1,6 @@
# containers
pewter_cauldron = 'pewter_cauldron'
copper_cauldron = 'copper_cauldron'
martini_glass = 'martini_glass'
old_kettle = 'old_kettle'
raki_bottle = 'raki_bottle'
PEWTER_CAULDRON = 'pewter_cauldron'
COPPER_CAULDRON = 'copper_cauldron'
MARTINI_GLASS = 'martini_glass'
OLD_KETTLE = 'old_kettle'
RAKI_BOTTLE = 'raki_bottle'

View file

@ -1,7 +1,7 @@
# heat sources
fire = 'fire'
eternal_flame = 'eternal_flame'
breathe_on_cauldron = 'breathe_on_cauldron'
FIRE = 'fire'
ETERNAL_FLAME = 'eternal_flame'
BREATHE_ON_CAULDRON = 'breathe_on_cauldron'
def stir(potion, direction):

View file

@ -1,5 +1,5 @@
# ingredients
snake_skin = 'snake_skin'
fish_eyes = 'fish_eyes'
unicorn_hair = 'unicorn_hair'
tea_leaves = 'tea_leaves'
SNAKE_SKIN = 'snake_skin'
FISH_EYES = 'fish_eyes'
UNICORN_HAIR = 'unicorn_hair'
TEA_LEAVES = 'tea_leaves'