Skip to content

Instantly share code, notes, and snippets.

@jayunit100
Created January 30, 2012 00:07
Show Gist options
  • Save jayunit100/1701482 to your computer and use it in GitHub Desktop.
Save jayunit100/1701482 to your computer and use it in GitHub Desktop.
jark homeowrk
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