Advertisement
Guest User

Untitled

a guest
Oct 18th, 2012
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.22 KB | None | 0 0
  1. trans = {'A':'T','T':'A','C':'G','G':'C'}
  2. mystring="ATTGCA"
  3. with open("data1.txt", "w+") as outfile:
  4.     for character in mystring:
  5.         outfile.write(trans[character])
  6.     outfile.seek(0)
  7.     print outfile.read()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement