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 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
Here is a Python program that meets your requirements def getuserinput return inputEnter a DNA seque... View full answer
Get step-by-step solutions from verified subject matter experts
