Created
April 14, 2016 16:04
-
-
Save ymcdull/f9aa146c8407868261b474818270ab44 to your computer and use it in GitHub Desktop.
Just a quick "object" input test for class argument
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 argTester(object): | |
def __init__(self, name1, name2): | |
self.name1 = name1 | |
self.name2 = name2 | |
def printer(self): | |
print("Hello, this is %s. Nice to meet you, %s" % (self.name1, self.name2)) | |
tester = argTester("Frank", "Shirly") | |
tester.printer() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment