You are conducting an experiment on the tardigrade population in space. You captured 100 tardigrades and measured the length of each of them. Each tardigrade is cataloged by the letter 't' followed by a number (‘t_1’, ‘t_2’ etc.).

science

Description

1.      You are conducting an experiment on the tardigrade population in space. You captured 100 tardigrades and measured the length of each of them. Each tardigrade is cataloged by the letter 't' followed by a number (‘t_1’, ‘t_2’ etc.).

Write a function display_tardigrade_length(tardigrade) that receives a list tardigrade as an argument. The list tardigrade represents a single tardigrade as a list with 2 elements: the first element in is the tardigrade’s catalog name and the second element is its length in millimeters (mm). The function should print to the console the tardigrade’s catalog name and the length in the following format:

Catalog name: t_1

length: 1.2 mm

*Pay attention to space following the ‘:’ character.

2.      In order to compare the tardigrade population to much larger animals, you need to convert their length from millimeters to meters. Write a function get_tardigrade_length_m(tardigrade)that gets a single tardigrade (i.e., list of name and length in mm) and returns its length in meters.

For example, the call to convert_mm_to_m([‘t_11’, 1.1]) will return 0.0011.

3.      Write a function that gets a list of tardigrades and returns the sum of their lengths in meters:  sum_tardigrade_length_m(tardigrade_list)

Text Box: Example:  sum_tardigrade_length_m(tardigrade_list)
Input: 
[['t_1', 0.57], ['t_2', 0.8], ['t_3', 0.95], ['t_4', 0.67], ['t_5', 0.82]]
Output:
0.00381

Each tardigrade in the list is represented by a list with 2 elements as previously defined. Use the function you defined in 2 and also map and reduce. (You will have to define another helper function in order to perform one of these actions)

4.      You released all the tardigrades you captured to nature. You know that tardigrades' growth rate behaves according to logistic growth model defined below:


Related Questions in science category