Created
October 4, 2016 18:26
-
-
Save trekr5/aed88c4e21a6dd2baf37d5d41b1ca3fc 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
#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