Skip to main content
Indented the code
Source Link
haci
  • 4.2k
  • 1
  • 7
  • 28
def revcomplement(s):
    s = s.upper()
    c = { "A":"T","C":"G","T":"A","G":"C"}
    co = str()
    for i in s:
        co = c[i] + co
    return co
def revcomplement(s):
s = s.upper()
c = { "A":"T","C":"G","T":"A","G":"C"}
co = str()
for i in s:
    co = c[i] + co
return co
def revcomplement(s):
    s = s.upper()
    c = { "A":"T","C":"G","T":"A","G":"C"}
    co = str()
    for i in s:
        co = c[i] + co
    return co
Source Link

def revcomplement(s):
s = s.upper()
c = { "A":"T","C":"G","T":"A","G":"C"}
co = str()
for i in s:
    co = c[i] + co
return co