Created
March 24, 2020 14:08
-
-
Save allatambov/545f2b1c0e804701cc39814b3fccd212 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 Cauldron_Pers(Cauldron): | |
def __init__(self, size, material, owner, contents=[], mark=None): | |
super().__init__(size, material, contents) | |
self.owner = owner | |
self.mark = mark | |
my = Cauldron_Pers('medium', 'cooper', 'Alla') | |
my.owner | |
my.mark | |
class Cauldron_Pers(Cauldron): | |
def __init__(self, size, material, owner, contents=[], mark=None): | |
super().__init__(size, material, contents) | |
self.owner = owner | |
self.mark = mark | |
def set_mark(self, m): | |
self.mark = m | |
my.set_mark(2) | |
my.mark |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment