![ella3714](/avatars/36105.jpg)
ella3714
04.03.2021 •
Computers and Technology
The information in DNA Is coded in chemical bases adenosine (A) guanine (G) cytosine (C), and thymine (T) We can represent a DNA strand by stringing together the letters representing the appropriate strand. Imagine we are given a list of DNA strands which have arbitrary lengths. Write a single function strand_counter() which takes a list of DNA strands, counts the lengths of each of the words in the list and then calculates and returns the integer maximum_length integer minimum_length, and float average_length
Then write a program which takes in a user-chosen number of strands of arbitrary length as an input and prints out the calculated information
Example input
5
AT
ATCGTCOGGT
TCGCT
TCGATTCCT
TTCATCG
Example output
The longest strand has length 10.
The shortest strand has length 2.
The average length of the strands is 6.6.
Solved
Show answers
More tips
- C Computers and Internet The Best Antivirus Programs for your PC...
- H Health and Medicine Angina: Causes, Symptoms, and Treatment...
- C Computers and Internet How to Learn to Type Fast?...
- F Food and Cooking Delight for Gourmets: How to Prepare Liver Pate...
- S Style and Beauty How to braid friendship bracelets?...
- H Health and Medicine Mercury Thermometer Danger: What to do when a thermometer breaks?...
- F Food and Cooking Which Calamari Salad is the Most Delicious?...
- S Society and Politics 10 Tips for Boosting Your Self-Esteem...
- F Food and Cooking The Most Delicious and Simple Fish in Batter Recipe...
- H Health and Medicine What is Autism? Understanding the Basics of This Neurodevelopmental Disorder...
Answers on questions: Computers and Technology
- C Computers and Technology Choose the best option to answer each question on design or development. During the design phase, development teams translate the requirements into _____. During...
- C Computers and Technology In a city there are N houses, each of which is in need of a water supply. It costs Wi dollars to build a well at house i, and it costs Cij to build a pipe in between...
- E English Hey yall who wanna talk? 16+ onlyyy boys and girlss teheheh...
- E English Answer asa. What is the positive connotation of the phrase black gold rush in paragraph 2? A. Money will be made. B. People will leave quickly. C. Fuels will be black...
- M Mathematics 2. Consider the function represented by the formula h(x) = -3(x - 3)2 + 3. Which of the following best describes how the graph of h(x) compares with the parent function,...
- C Chemistry Dmitri Mendeleev and Lothar Meyer created similar elemental tables in 1869. Why was Medneleev s table more valuable to modern science than Meyer s table?...
- M Mathematics Find the values of x and y. 70 74° 78...
- C Chemistry if an atom or molecule doesn t have a subscript or coefficient what number should be used for that Atom / molecule...
- M Mathematics -(x-9)-(8-x)=x please solve...
- P Physics The units for distance, displacement, or position...
Ответ:
c
Explanation:
i think i leard it out my old shcool
Ответ:
A
Explanation: