02 Transcribing DNA into RNA

时间:2017-07-29 14:51:49   收藏:0   阅读:236

Problem

An RNA string is a string formed from the alphabet containing ‘A‘, ‘C‘, ‘G‘, and ‘U‘.

Given a DNA string tt corresponding to a coding strand, its transcribed RNA string uu is formed by replacing all occurrences of ‘T‘ in tt with ‘U‘ in uu.

Given: A DNA string tt having length at most 1000 nt.

Return: The transcribed RNA string of tt.

Sample Dataset

GATGGAACTTGACTACGTAAATT

Sample Output

GAUGGAACUUGACUACGUAAAUU


方法一
str = ‘GATGGAACTTGACTACGTAAATT‘
print str.replace(‘T‘,‘U‘)

  

原文:http://www.cnblogs.com/think-and-do/p/7255658.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!