Skip to content

Instantly share code, notes, and snippets.

@popey456963
Created November 4, 2015 18:52
Show Gist options
  • Save popey456963/337e5ee28c795f749271 to your computer and use it in GitHub Desktop.
Save popey456963/337e5ee28c795f749271 to your computer and use it in GitHub Desktop.
Reverse DNA
dna = input()
out = ""
for i in dna:
if i == "A":out+="T"
if i == "C":out+="G"
if i == "G":out+="C"
if i == "T":out+="A"
print(out)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment