times = int(raw_input("How many times do you want to transcribe DNA into RNA? "))
count=0
while count < times:
count=count+1
dna = raw_input("Enter the original DNA sequence: ")
rna=""
for base in dna:
if base is "A":
rna = rna + "U" # Adenosine is transcribed to uracil
elif base is "G":
rna = rna + "C"
elif base is "T":
rna = rna + "A"
elif base is "C":
rna = rna + "G"
print rna
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment