Skip to content

Commit

Permalink
Merge pull request #7 from ccmt/patch-1
Browse files Browse the repository at this point in the history
Create Exercicio_A_Clara.py
  • Loading branch information
pamellabiotec authored Oct 11, 2020
2 parents 671a4c9 + aa27bcc commit 3169900
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Clara - Respostas semana 1.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@

# Counting DNA Nucleotides - http://rosalind.info/problems/dna/
def quantidade_nucleotideo(seq):
#return seq.count("A"), seq.count("C"), seq.count("G"), seq.count("T")
return " ".join(map(str,[seq.count("A"), seq.count("C"), seq.count("G"), seq.count("T")]))

# Transcribing DNA into RNA - http://rosalind.info/problems/rna/
def transcrever_DNA(seq):
return seq.replace('T', 'U')


#print(quantidade_nucleotideo("GATGGAACTTGACTACGTAAATT"))

0 comments on commit 3169900

Please sign in to comment.