diff --git a/Clara - Respostas semana 1.py b/Clara - Respostas semana 1.py new file mode 100644 index 0000000..a60675f --- /dev/null +++ b/Clara - Respostas semana 1.py @@ -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"))