id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

mic@mathcs.emory.edu lab2 > revcomp
prev  |  next  |  chance

revcomp(dna) -- return the reverse complement of a DNA string.
The given string is entirely made up of the base symbols 'A', 'C', 'G', 'T'. Return the string reversed, with each base replaced by its complement ('A' to 'T', 'C' to 'G', 'G' to 'C', 'T' to 'A').


revcomp('CAT') → 'ATG'
revcomp('GATTACA') → 'TGTAATC'
revcomp('ACGT') → 'ACGT'

...Save, Compile, Run (ctrl-enter)

def revcomp(dna):

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Python Help

Difficulty: 160

Copyright Nick Parlante 2017 - privacy