Skip to content

Instantly share code, notes, and snippets.

@trekr5
Created October 4, 2016 18:26
Show Gist options
  • Save trekr5/aed88c4e21a6dd2baf37d5d41b1ca3fc to your computer and use it in GitHub Desktop.
Save trekr5/aed88c4e21a6dd2baf37d5d41b1ca3fc to your computer and use it in GitHub Desktop.
#test.py
class Test:
def __init__(self, members):
self.members = members
def printMembers(self):
print('Printing members of Test class...')
for member in self.members: print('\t%s ' % member)
test = Test(['Gazelle', 'Elephant', 'Lion', 'Fish'])
test.printMembers()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment