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

The solution for “Modify the program so it also prints the number of A, T, C, and G characters in the sequence in python” can be found here. The following code will assist you in solving the problem.

A = “GATTACA”
for i in [‘A’,’C’,’G’,’T’]:
n = 0
for j in A:
if(i == j):
n += 1
print(i, “=”, n)

Thank you for using DeclareCode; We hope you were able to resolve the issue.

More questions on [categories-list]

0
inline scripts encapsulated in