Created
October 3, 2019 19:54
-
-
Save shifatul-i/326c785641a0235cc63add359865251a 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 MyClass: | |
variable = "blah" | |
def function(self): | |
print("The variable is {}.".format(self.variable)) | |
myobject_x = MyClass() | |
myobject_y = MyClass() | |
myobject_y.variable = "yackity" | |
myobject_x.function() | |
myobject_y.function() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment