Created
March 24, 2017 13:06
-
-
Save pcote/b54533f8dae6a4d69b3811bfd9d2656a to your computer and use it in GitHub Desktop.
This file contains hidden or 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(object): | |
def __init__(self, msg): | |
self.msg = msg | |
def say_stuff(self): | |
print("Say stuff message is: {}\n\n".format(self.msg)) | |
# normal call and instantiation | |
ob1 = MyClass("Hello there, first example.") | |
ob1.say_stuff() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment