Question
The number of salamanders marked at a series of sampling sites has been counted by your field crew and entered into the following list. The
The number of salamanders marked at a series of sampling sites has been counted by your field crew and entered into the following list. The first item in each sublist is an alphanumeric code for the site and the second value is the number of salamanders banded. Cut and paste the list into your assignment and then answer the following questions by printing them to the screen. I am looking for the python commands that you type to get these answers.
data = [['A1', 28], ['A2', 32], ['A3', 1], ['A4', 0], ['A5', 10], ['A6', 22], ['A7', 30], ['A8', 19], ['B1', 145], ['B2', 27], ['B3', 36], ['B4', 25], ['B5', 9], ['B6', 38], ['B7', 21], ['B8', 12], ['C1', 122], ['C2', 87], ['C3', 36], ['C4', 3], ['D1', 0], ['D2', 5], ['D3', 55], ['D4', 62], ['D5', 98], ['D6', 32]]
a. How many sites are there? b. How many salamanders were counted at the 7th site? c. How many salamanders were counted at the last site? d. What is the total number of salamanders counted across all sites? e. What is the average number of salamanders per site? f. What is the total number of salamanders counted on sites with codes beginning with C? (dont just identify this sites by eye, in the real world there could be hundreds or thousands of sites)
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