Skip to content

Instantly share code, notes, and snippets.

@ymcdull
Created April 14, 2016 16:04
Show Gist options
  • Save ymcdull/f9aa146c8407868261b474818270ab44 to your computer and use it in GitHub Desktop.
Save ymcdull/f9aa146c8407868261b474818270ab44 to your computer and use it in GitHub Desktop.
Just a quick "object" input test for class argument
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