Created
May 3, 2023 12:07
-
-
Save stephengruppetta/533fa62a934d85f39d0c070a88c49aba 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
class Wizard: | |
def __init__(self): | |
self.name = None | |
self.patronus = None | |
self.birth_year = None | |
self.house = None | |
self.wand = None | |
# Create two wizard instances | |
harry = Wizard() | |
hermione = Wizard() | |
print(harry) | |
# <__main__.Wizard object at 0x102c55110> | |
print(hermione) | |
# <__main__.Wizard object at 0x102c55650> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment