-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathRNA.py
executable file
·8 lines (7 loc) · 1.04 KB
/
RNA.py
1
2
3
4
5
6
7
8
def rna(s):
sl = list(s)
for idx, ch in enumerate(sl):
if (ch == 'T'):
sl[idx] = 'U'
print ''.join(sl)
rna('CCACTTCTCGCCGACGTGATTTTCACCAAGTGAGCTGCTAGTAAAGTTGGGGCTCACCGACGGTGAGAGGGGTCGAGACGTTGACTACTGGACATATCGCCGTAGCTGCGTGACTCTACGGGAGTAAGGGAGCGCATGGAATCCTTATCGGCGGATTCGCCGTTGTTCTTGTACAACACTATTAGGCAGTCATTGTTCCAACGAAGAATGTACGGTATCTGGTTTTACGATGTACCTAACACATGGCAGCGTGGCTAGCAGCAAACCCCGCGTCCGGCAACATGGAATAGGTGAATTAAGGGACGCATCACACTTCAAGCTCAACTTGCCGTCAAGGTATGCCATGGAGCAATGAATCCCCTGAGCATAAACTCGGGCTTCCGCTTGGCTTGGGAGAGCGTTACGCGAAGCAGATTACGTATTGTTAAAAGGAGACCTGGATCCGTTTCAGGGCGCTTTTATATCCAGTACATTGGCCCCTCCGCTATTGTCGCGAACCTTCCGGTGGCAACTGGGCTCATTGAACTGTAGGGTGTCCGTTAGTCTGTTCTACTACACGAGCCTGGTTCGGGGCCTCCTGGAATGTCTCTGAGCAAGGTTTACTAAACCCCCAAGTACACGATCAGACATTCAACTTAAGGAATGTCGCGCTGCTGGAGTTAAGCTCCAATAATCGTCTGTATACGCTTAGAGCTCAAGGGGGCTAACTAAGGGACAATTTAGTAGTGGCGACCCTCTTCACCCGTTAGTTAGCCCATATCTAGAGCGTGAGAAATTCCCTCGCACGTTGCGAGTCTATCCCACTAGATTAGTCTAAGCGACTTTCACTTTAACCAGCCATTGACATTGCTCTATCAATGCTCGATTTAATGTAAGTGGCAACGACATGCCGCCTGGCCCTCAGGATCGTGGATCACTCGTTTTGACGCC')