Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a program to get a DNA sequence from the user (as a function called get_user_input()) and count the number of occurrences of A,

image text in transcribed 


Write a program to get a DNA sequence from the user (as a function called get_user_input()) and count the number of occurrences of A, T, C and G (as a function called count_bases()). If there is an A in the sequence, print the number of times it appears in the sequence. If it does not exist, print "A not found". Do the same for T, C and G. For example: Enter a sequence: ACCAGGCA A count: 3 T not found C count: 3 G count: 2

Step by Step Solution

3.56 Rating (156 Votes )

There are 3 Steps involved in it

Step: 1

Here is a Python program that meets your requirements def getuserinput return inputEnter a DNA seque... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Elementary Statistics A Step By Step Approach

Authors: Allan G. Bluman

10th Edition

1259755330, 1259755339, 978-1259755330

More Books

Students also viewed these Programming questions

Question

6. What is the function of Golgi tendon organs?

Answered: 1 week ago