def save_earth(file, animal_dict):
This function will read from a file and populate the empty dictionary passed in as a parameter.
The file contains information of animals found on Earth. The file contains two names on
each line. The first name is either an animal type or deadly bacteria/virus. The second name
is a name for the animal type, , or virus. Animal types include Bird, Fish, Mammal,
Your task is to save all the creatures (animal types) listed in the file from the evil
bacteria and viruses that randomly roam the file. You are to map only animal types to their
corresponding names. If you come across a bacteria or a virus do not place it in the animal_dict.
"Bird" : ["Humming Bird", "Crow", "Dove" ...]
Parameters: file - name of the file to be read
animal_dict - empty dictionary that will eventually map animal types to a list of animal names.
Recently Asked Questions
- Smith, Williams and Rowlandson present vastly different views of Native Americans, How can their differences be accounted for.
- When I have a class that extends Application (public class Game extends Application) I can easily call it from my driver class by typing launch(Game.class).
- Italy's Ineffective Program for Reducing Smoking Spillovers In most systems for reducing pollution using an effluent fee, the government is directly involved