SHARE
TWEET

Untitled

a guest Jun 20th, 2019 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. s = "AACCGGCCAA"
  2.  
  3.  
  4. def repl(x):
  5.     print(x)
  6.     if x == "A": return "T"
  7.     elif x == "T": return "A"
  8.     elif x == "C": return "G"
  9.     elif x == "G": return "C"
  10.  
  11. output = map(repl, s)
  12.  
  13.  
  14. print(output)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top