from person_start import Person
bob = Person('Bob smith', 42)
sue = Person('Sue Jones', 45, 40000)

people = [bob, sue]

for person in people:
    print(person.name, person.pay)

x = [(person.name, person.pay) for person in people]
print x

print([rec.name for rec in people if rec.age >= 45])

print([(rec.age ** 2 if rec.age >= 45 else rec.age) for rec in people])