def transcribe(dna):
 if isinstance(dna, Seq):
  return dna.transcribe()
 elif isinstance(dna, MutableSeq):
  return dna.toseq().transcribe()
 else:
  return dna.replace('T', 'U').replace('t', 'u')

def transcribe ( dna ) : if isinstance ( dna , Seq ) : return dna . transcribe ( ) elif isinstance ( dna , MutableSeq ) : return dna . toseq ( ) . transcribe ( ) else : return dna . replace ( 'T' , 'U' ) . replace ( 't' , 'u' )
transcribes a dna sequence into rna .