Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- s = "AACCGGCCAA"
- def repl(x):
- print(x)
- if x == "A": return "T"
- elif x == "T": return "A"
- elif x == "C": return "G"
- elif x == "G": return "C"
- output = map(repl, s)
- print(output)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement