-
-
Save stephengruppetta/fd4693ecd66c523c715809a3222b7ceb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# making_magic.py | |
from hogwarts_magic import Student, House | |
hermione = Student( | |
"Hermione Granger", | |
"otter", | |
1979, | |
1, | |
) | |
ron = Student( | |
"Ron Weasley", | |
"jack russell terrier", | |
1980, | |
1, | |
) | |
harry = Student( | |
"Harry Potter", | |
"stag", | |
1980, | |
1, | |
) | |
gryffindor = House( | |
"Gryffindor", | |
"Godric Gryffindor", | |
["scarlet", "gold"], | |
"lion", | |
) | |
hermione.assign_house(gryffindor) | |
ron.assign_house(gryffindor) | |
harry.assign_house(gryffindor) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment