Created
January 30, 2012 00:07
-
-
Save jayunit100/1701482 to your computer and use it in GitHub Desktop.
jark homeowrk
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
import Person | |
jark = Individual("john",...) | |
jay = Individual("jay", ... | |
colber = ... | |
listOfPeople = []; | |
listOfPeople.append(jark) | |
.. | |
#to get someones age : listOfPeople[3].age | |
int sumAges=0 | |
for i in range(len(listOfPeople)): | |
print listOfPeople[???] | |
sumAges ?? | |
print sumAges/len(listOfPeople) | |
###################################### | |
import Person | |
jark = Individual("john",...) | |
jay = Individual("jay", ... | |
colber = ... | |
listOfPeople = []; | |
listOfPeople.append(jark) | |
.. | |
#to get someones age : listOfPeople[3].age | |
int sumAges=0 | |
for i in range(len(listOfPeople)): | |
print listOfPeople[???] | |
sumAges ?? | |
print sumAges/len(listOfPeople) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment