-
Notifications
You must be signed in to change notification settings - Fork 2
/
CountingDNANucleotides.py
9 lines (7 loc) · 1.1 KB
/
CountingDNANucleotides.py
1
2
3
4
5
6
7
8
9
def countnucleotides(dna):
a = dna.count('A')
t = dna.count('T')
c = dna.count('C')
g = dna.count('G')
print(a, " ", c, " ", g, "", t)
countnucleotides('GGCTTCAAGGGGAATCTGTCGTCGCCTCATGAACACGACCCTTTTAAAGGTGGGGTAACCACTCCTCCAACAATCTATGATGGAATGGTTAACGGCGTCGTGAGACGCTGAAGAGTCCGGGTTCGAACTGAGGGAGCCATCGAGTTGGGGTGGGCGTCTCCTTGTCCGAAATATGCCGATTTCCTTGCCAACCAGTCATACTCAATTGCGCCCAAAGTGCCGAACTTGCCCGAAAGAAAGCATACCGAGTTGCGATTAGGAGTGCTTGGCTAGCTTCAGGTTTCGCGAGAGGCACAAAACTCCTTAAGACGTGCGTGGGATGTATCACGGCTTCCTCATAGCATGTTGTCCGCTTGCCTGCTCCCCCTCCAACTATTTGCAGTTCAATCCCTGGTCTGCCTCTGAGCTCTAATTATTGCATAGATTATCACGCCAGAGGGTGTGGTGCGATGCGAAGAGTCCGCATCTCCGAAGAGTAGGCCTTGGCGTCGGCATTACTGTGTCTCGTGTAATCGGGGCTCCGGGATCTGTCTGACCAACTCTCGCAAGTGCCAATTATGATTATAGCACATGTGATACTGGTATTGGCCCAGGCCTAAAGTCAAGGCCTATAGACGTACAGAGATGTGACTAGAAGCCCAAAACCTACGGTTTCCGACGTTGTAGTCGTTATCCACGTAAAAATAATTGAGCTGTCACTCTACAAACCTCACATAATAACCTTTAAAAAACTCGGGAGCAGCTCGCTTATTGTCCCTGCTGCCCGCCCTGCATATCACCGCATGCAGAGGACAGGCATTGCCGAAAACCCGTGATAGGAACGACGGGTTGTGCGTCCACAGCCAGAATGTTGCATATTCCATAATCTATGCTAGGATCTGGGACCTGACAAACTTCTAAGGCATTAGGCTTCTGCCACCACTATCTCTGACAGGGCTAAGTAG')