Created
March 24, 2017 13:06
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(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