Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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: AACBCCFG AB GBEE ACDABG the output of speciesCounts would contain: Species Counts A C B F G E D 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started