Question: In this task you are required to write a Python function that provides counts of each species. This requires one function, speciesCounts ( ) ,

In this task you are required to write a Python function that provides counts of each species. This requires one function, speciesCounts(), that counts each unique plant species and returns the species name with its total prevalence count. For example, for a list containing the following items (note that these examples are not plant species but these must be plant species in your list): [A,A,C,B,C,C,F,G, A,B, G,B,E,E, A,C,D,A,B,G] the output of speciesCounts() would contain: Species Counts A 5 C 4 B 4 F 1 G 3 E 2 D 1 You may choose to modify the order in which the plants are listed, and the appearance of how the results are presented, but each unique species and its total count must be displayed. In your program you may define other (auxiliary) functions with arbitrary names, however, the solution function of this task should be named speciesCounts(). You must also document your algorithm / pseudocode for your solution.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!