44.8k views
23 votes
Explain how you would filter the dog dataset using traversal to have a filtered list of dogs who live long lives.

User Rosario
by
4.2k points

1 Answer

12 votes

Answer:

First, decide what counts as long lives (i.e. how many years it needs to live) then check for dogs where life span is <= that number. Then have the program remove all other dogs.

Step-by-step explanation:

User Eliot Sykes
by
3.0k points