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
- 36.Your professor showed you an online video of the chair of the Federal Reserve Bank speaking to the American public. The message she is conveying indicates
- 37.The Tsingtao Brewing company pays a fee to AB-InBev for the right to brew and distribute Budweiser in China. Tsingtao is the licensee and the fee paid is a
- 38.A trade deficit is the same as an unfavorable balance of trade. True False