Exercise: Treating People as Objects

Introduction

In this exercise you will practice defining and using classes, and performing simple manipulations of collections of objects.

Problem Description

You need to view some data about people in various ways.

Solution Description

The people.py module has starter code that creates Person objects in a list peeps. In the people.py file:

Do the following exercises to practice using Person objects:

Sample Answer

Don’t peek until you’ve tried it yourself!