Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

Modify the program so it also prints the number of A, T, C, and G characters in the sequence in python

A = "GATTACA"
for i in ['A','C','G','T']:
    n = 0
        for j in A:
            if(i == j):
                n += 1
    print(i, "=", n)
Source by hackmd.io #
 
PREVIOUS NEXT
Tagged: #Modify #program #prints #number #G #characters #sequence #python
ADD COMMENT
Topic
Name
6+9 =