Rosalind #3

Oct. 5th, 2015 03:05 pm
helloworld: (Default)
[personal profile] helloworld


sense = input("DNA sequence: ")

def revcomplement(dna):
rantisense = ""
for i in range(0, len(sense)):
if sense[i] == "A":
rantisense = "T" + rantisense
if sense[i] == "T":
rantisense = "A" + rantisense
if sense[i] == "C":
rantisense = "G" + rantisense
if sense[i] == "G":
rantisense = "C" + rantisense
print(rantisense)

revcomplement(sense)
This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

Profile

helloworld: (Default)
apply(myLife, fuck)

October 2015

S M T W T F S
    123
4 5678910
11121314151617
18192021222324
25262728293031

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags