Python source code for nucleotide experiment

Nucleotides and Nucleic acids

purines = 'adenine' 'thymine'

pyramidines = 'guanine' 'cytosine'

print('DNA is composed of the following 4 nucleotides: ')
print()
nucleotides = 'ATGC'
print(nucleotides)

print('A = adenine', 'T = Thymine', 'G = Guanine', 'C = Cytosine')
print()
nucleotide_permutations = [x+y+z for x in nucleotides for y in nucleotides for z in nucleotides]
print('Possible nucleotide triplet, i.e., codon permutations include: ' )
print()
print(nucleotide_permutations)

Posted on April 2, 2019 02:12 AM by gunnellb gunnellb

Comments

No comments yet.

Add a Comment

Sign In or Sign Up to add comments