Advertisement
RonWeber

q5.py

Feb 14th, 2020
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.16 KB | None | 0 0
  1. reverse_comp = lambda s: "".join({"A": "T", "T": "A", "C": "G", "G": "C"}[b] for b in (a.upper() for a in s[::-1])) # Using more than one line is heresy, comrade!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement