Created
November 4, 2015 18:52
-
-
Save popey456963/337e5ee28c795f749271 to your computer and use it in GitHub Desktop.
Reverse DNA
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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