Question: 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,

Write a program to get a DNA sequence from the user (as 


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

1 Expert Approved Answer
Step: 1 Unlock

Here is a Python program that meets your requirements def getuserinput return inputEnter a DNA seque... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!