-
-
Save stephengruppetta/87e038a721e00333497805e3181c96e2 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 Wizard, House, Wand | |
# ... | |
harry.assign_wand( | |
Wand("holly", "phoenix feather", 11) | |
) | |
# Harry Potter has a | |
# <hogwarts_magic.Wand object at 0x102aa1c10> wand. | |
print(harry.wand.wood) | |
# holly | |
print(harry.wand.core) | |
# phoenix feather | |
print(harry.wand.length) | |
# 11 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment