Skip to content

Instantly share code, notes, and snippets.

@stephengruppetta
Created August 20, 2023 18:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stephengruppetta/73e4420b25303e76e7c67a8936b6bba4 to your computer and use it in GitHub Desktop.
Save stephengruppetta/73e4420b25303e76e7c67a8936b6bba4 to your computer and use it in GitHub Desktop.
# schools.py
from hogwarts_magic import House
class Hogwarts:
_houses = {
"Gryffindor": House(
"Gryffindor", "Godric Gryffindor", ["scarlet", "gold"], "lion"
),
"Slytherin": House(
"Slytherin", "Salazar Slytherin", ["green", "silver"], "serpent"
),
"Ravenclaw": House(
"Ravenclaw", "Rowena Ravenclaw", ["blue", "bronze"], "eagle"
),
"Hufflepuff": House(
"Hufflepuff", "Helga Hufflepuff", ["yellow", "black"], "badger"
),
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment