You are on page 1of 1

dna_seq = str(input("Enter the DNA sequence in small alphabets: "))

length_seq = len(dna_seq)

print("The length of DNA sequence is", length_seq)

y =""

for alphabets in dna_seq:

if alphabets == "a":

y = y+"a"

print(y)

length_a= len(y)

print("The number of a's in the given DNA sequence is", length_a)

You might also like