-
-
Save stephengruppetta/549b42c79716d7b0cc69e311be833a57 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, Wand | |
elder_wand = Wand("elder", "thestral tail hair", 15, power=1) | |
harry = Student("Harry Potter", "stag", 1980) | |
harry.assign_wand( | |
Wand("holly", "phoenix feather", 11) | |
) | |
print(elder_wand.convert_cm_to_inches(30)) | |
print(harry.wand.convert_cm_to_inches(30)) | |
print(Wand.convert_cm_to_inches(30)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment